Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Include 3DS error codes in verifyPayload #713

Closed
daelmaak opened this issue Apr 16, 2024 · 1 comment
Closed

Request: Include 3DS error codes in verifyPayload #713

daelmaak opened this issue Apr 16, 2024 · 1 comment

Comments

@daelmaak
Copy link

daelmaak commented Apr 16, 2024

General information

  • SDK version: 3.96.0
  • Environment: all

Issue description

When user is required to complete a challenge, and fails the challenge, we don't get the 3DS error code back in the payload produced by verifyCard.

Detailed description

After user submits the challenge, https://api.sandbox.braintreegateway.com/merchants/{merchantId}/client_api/v1/payment_methods/{methodId}/three_d_secure/authenticate_from_jwt is called. That endpoint can return response like this:

{
    "errors": [
        {
            "attribute": "three_d_secure_token",
            "message": "Failed to authenticate, please try a different form of payment.",
            "model": "transaction",
            "type": "user",
            "code": "81571"
        }
    ],
    "threeDSecureInfo": {
        "liabilityShifted": false,
        "liabilityShiftPossible": true
    }
}

This response contains the 3DS code "code": "81571" and nicely shows what went wrong. However this code is not present in the verifyPayload so we can't use it. I also didn't find any other property that'd communicate it precisely.

@jplukarski
Copy link
Contributor

@daelmaak Thanks for writing in.

The payload should have the lookup.transStatus and lookup.transStatusReason properties on the threeDSecureInfo returned in the verifyCard payload.

If you are having trouble getting those values returned feel free to write into our Tech Support team for more integration issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants