@Jack_Honner, This is very simple.
Things you will need to know about the API Docs for 3D Secure Payments
1.) To use the sandbox to simulate a payment that requires 3DS authentication, set the βamountβ between 1000.00 and 1999.99.
Here, I set mine to 1001.
2.) Run the tested code below and view the request response.
Copy the redirect_url parameter/value in the response and paste on the browser url it will then redirect you to 3D Verification site. You will be required
there to enter certain code/numbers eg 12345. Once enter successfully, you will be redirected to page to complete payments. Once payment is completed
The Status will change from ACT to CLO.
[redirect_url] => https://sandboxcheckout.rapyd.net?token=checkout_18118b8a65abcc4f90e47fb3d4d50fec
Run the tested Code below
include('utilities.php');
$body = [
"amount" => "1001.00",
"complete_checkout_url" => "http://example.com/complete",
"country" => "GB",
"currency" => "GBP",
"merchant_reference_id" => "950ae8c6-78",
"language"=>"en",
"payment_method_types_include" => [
"gb_mastercard_card",
"gb_visa_card",
"gb_zappapp_bank",
"gb_trustly_bank"
],
"capture"=>true,
"3DS_required"=>true
];
echo "fred<br><br>";
try {
$object = make_request('post', '/v1/checkout', $body);
print_r($object);
$json = json_decode(json_encode($object), true);
print_r($json);
} catch(Exception $e) {
echo "<div style='background:red;color:white;padding:8px;border:none;'>Error: $e</div>";
}