# Something went wrong. Resubmit card details or use a different card or payment method

**URL:** https://community.rapyd.net/t/something-went-wrong-resubmit-card-details-or-use-a-different-card-or-payment-method/3239
**Category:** General
**Created:** [June 10, 2022, 8:32am UTC](https://community.rapyd.net/t/something-went-wrong-resubmit-card-details-or-use-a-different-card-or-payment-method/3239 "2022-06-10T08:32:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![m2z](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@m2z](https://community.rapyd.net/u/m2z)
#### Post date: [June 10, 2022, 8:32am UTC](https://community.rapyd.net/t/something-went-wrong-resubmit-card-details-or-use-a-different-card-or-payment-method/3239/1 "2022-06-10T08:32:49Z")

</div>

I have used the php example in [Hosted Checkout Page Integration](https://docs.rapyd.net/build-with-rapyd/docs/hosted-checkout-page-integration-steps) (correcting the speech marks around requested currency)

That works, which is great but when I go to the webpage returned in redirect\_url and complete the card details I get the message:

Something went wrong. Resubmit card details or use a different card or payment method.

This generates a call to the weblink but there is no information other than it is an error. Where can I find out what is going wrong?

Thanks  
Mark

---

<div class="post-metadata">

### Author: ![fredjinbility](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@fredjinbility](https://community.rapyd.net/u/fredjinbility)
#### Post date: [June 10, 2022, 9:19am UTC](https://community.rapyd.net/t/something-went-wrong-resubmit-card-details-or-use-a-different-card-or-payment-method/3239/2 "2022-06-10T09:19:53Z")

</div>

@m2z, Complete Payment/checkout Redirect URL should take a user to where he/she should finish up his payments.

Since you are having issues, Please can you paste your portion of the code here so that we can easily figure out what the problem is. Thanks

---

<div class="post-metadata">

### Author: ![m2z](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@m2z](https://community.rapyd.net/u/m2z)
#### Post date: [June 10, 2022, 10:24am UTC](https://community.rapyd.net/t/something-went-wrong-resubmit-card-details-or-use-a-different-card-or-payment-method/3239/3 "2022-06-10T10:24:44Z")

</div>

```
<?php
include('utilities.php');

$body = [
    "amount" => 101,
    "complete_checkout_url" => "https://devonsmallholders.co.uk/sandbox/complete.php",
    "cancel_checkout_url" => "https://devonsmallholders.co.uk/sandbox/cancel.php",
    "country" => "SG",
    "currency" => "SGD",
    "requested_currency" => "USD",
    "merchant_reference_id" => "950ae8c6-76",
    "payment_method_types_include" => [
       "sg_credit_mastercard_card", 
       "sg_credit_visa_card"
    ]
];

try {
    $object = make_request('post', '/v1/checkout', $body);
    var_dump($object);
} catch (Exception $e) {
    echo "Error: $e";
}
?>
```

At the moment this does not automatically redirect, I am copying and pasting the redirect URL that is returned.

---

<div class="post-metadata">

### Author: ![m2z](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@m2z](https://community.rapyd.net/u/m2z)
#### Post date: [June 10, 2022, 10:50am UTC](https://community.rapyd.net/t/something-went-wrong-resubmit-card-details-or-use-a-different-card-or-payment-method/3239/4 "2022-06-10T10:50:16Z")

</div>

> [@m2z](#):
>
> At the moment this does not automatically redirect, I am copying and pasting the redirect URL that is returned.

That seems to be my problem. Adding the automatic redirect seems to have done the trick.

---

<div class="post-metadata">

### Author: ![fredjinbility](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@fredjinbility](https://community.rapyd.net/u/fredjinbility)
#### Post date: [June 10, 2022, 12:22pm UTC](https://community.rapyd.net/t/something-went-wrong-resubmit-card-details-or-use-a-different-card-or-payment-method/3239/5 "2022-06-10T12:22:37Z")

</div>

Am Glad you sort it out. Good luck brother
