m2z
1
I have used the php example in Hosted Checkout Page Integration (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
@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
m2z
3
<?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.
m2z
4
That seems to be my problem. Adding the automatic redirect seems to have done the trick.
1 Like
Am Glad you sort it out. Good luck brother