Transition guide for the 1-click purchase flow with 3D Secure
Overview
Adding 3DS to the 1-click purchase flow
2
Adapt the request body
Parameter
Type
Required/Optional
Description
{
"Language":"en",
"Country":"US",
"CustomerIP":"10.10.10.10",
"Source":"Website",
"ExternalCustomerReference":"externalCustomerId",
"Currency":"USD",
"MachineId":"123456789",
"Items":[
{
"Code":"5DCB30C6B0",
"Quantity":1
}
],
"BillingDetails":{
"Email":"[email protected]",
"FirstName":"Customer First Name",
"LastName":"Customer Last Name",
"CountryCode":"US",
"State":"California",
"City":"San Francisco",
"Address1":"Example Street",
"Zip":"90210"
},
"PaymentDetails":{
"Type":"PREVIOUS_ORDER",
"Currency":"GBP",
"CustomerIP":"159.8.170.22",
"PaymentMethod":{
"RecurringEnabled":false,
"RefNo":"224497479",
"Vendor3DSReturnURL": "http://yoursuccessurl.com",
"Vendor3DSCancelURL": "http://yourcancelurl.com",
"CCID": "123"
}
}
}{
"Language":"en",
"Country":"US",
"CustomerIP":"10.10.10.10",
"Source":"Website",
"ExternalCustomerReference":"externalCustomerId",
"Currency":"USD",
"MachineId":"123456789",
"Items":[
{
"Code":"5DCB30C6B0",
"Quantity":1
}
],
"BillingDetails":{
"Email":"[email protected]",
"FirstName":"Customer First Name",
"LastName":"Customer Last Name",
"CountryCode":"US",
"State":"California",
"City":"San Francisco",
"Address1":"Example Street",
"Zip":"90210"
},
"PaymentDetails":{
"Type":"PREVIOUS_ORDER",
"Currency":"GBP",
"CustomerIP":"159.8.170.22",
"PaymentMethod":{
"RecurringEnabled":false,
"RefNo":"224497479",
"Vendor3DSReturnURL": null,
"Vendor3DSCancelURL": null,
"CCID": null
}
}
}3
Redirect the shopper to the 3DS page
"PaymentDetails":{
"Type":"TEST",
"Currency":"usd",
"PaymentMethod":{
"Authorize3DS":{
"Href":"http://api.sandbox63.avangate.local/6.0/scripts/credit_card/authorize",
"Method":"GET",
"Params":{
"avng8apitoken":"50dcb997be8b70bd"
}
},
"FirstDigits":"4111",
"LastDigits":"1111",
"CardType":"visa",
"RecurringEnabled":false,
"Vendor3DSReturnURL":null,
"Vendor3DSCancelURL":null
},
"CustomerIP":"159.8.170.22"
},Last updated
Was this helpful?