Advanced Card Payments, cannot get 3D Secure to work

Carrot3
Contributor
Contributor

We are attempting to integrate Advanced Card Payments: https://developer.paypal.com/docs/checkout/advanced/

 

Our integration is working until we try to enable 3D Secure as per the instructions here: https://developer.paypal.com/docs/checkout/advanced/customize/3d-secure/sdk/

 

When we set:

 

contingencies: ['SCA_WHEN_REQUIRED']

 

we never get the 3D Secure lightbox.

When we set:

 

contingencies: ['SCA_ALWAYS']

we get the lightbox every time, but https://cors.api.sandbox.paypal.com/v2/checkout/orders/xxx/validate-payment-method returns the following error:

 

{
"name": "UNPROCESSABLE_ENTITY",
"details": [
{
"issue": "CONTINGENCY",
"description": "Buyer needs to resolve following contingency before proceeding with payment"
}
],
"message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
"links": [
{
"href": "https://www.sandbox.paypal.com/webapps/helios?action=verify&flow=3ds&cart_id=xxx",
"rel": "3ds-contingency-resolution",
"method": "GET"
},
{
"href": "https://developer.paypal.com/docs/api/errors/#contingency",
"rel": "information_link",
"method": "GET"
}
],
"debug_id": "e2dac6877334e",
"informationLink": "https://developer.paypal.com/docs/api/orders#errors"
}

 

When we catch the error in our code the error object is:

 

{
"code": "internal_service_error",
"description": "api_error"
}

 

I have tried using the test cards here: https://developer.paypal.com/docs/checkout/advanced/customize/3d-secure/test/ and also cards generated within our developer account.

 

Unfortunately this isn't the only issue we face when it comes to 3D Secure implementation, and it wasn't behaving this way the other day.  However we cannot currently address other outstanding issues due to the above.

Login to Me Too
4 REPLIES 4

nsc-l3ia
New Community Member

Hello Carrot3,

 

I have exactly the same problem when implementing Advanced Checkout with 3DSecure

 

https://developer.paypal.com/docs/checkout/advanced/customize/3d-secure/

 

 

Login to Me Too

Carrot3
Contributor
Contributor

For us, this problem seemed to go away on its own, but the test cards listed are completely wrong.

 

You could try these tests cards instead:

 

5232106671708398

5356660078288487

5356660030805261

 

We did eventually get our integration working, but it was one of the most painful experiences in 20 years of development.

 

Good luck.

Login to Me Too

opn
Contributor
Contributor

 

Thanks Carrot3.

The first card number you listed will keep the contingency handler div in view, allowing me to enter the OTP for further testing.

 

Login to Me Too

gsm4
Contributor
Contributor

I'm seeing the same behavior, but those test cards did not work for me when using the JavaScript SDK.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.