question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ServerException] - 3D Secure - Android

See original GitHub issue

General information

  • SDK/Library version: 3.15.0
  • Environment: Production
  • Android Version and Device: Samsung Galaxy S9 Plus with Android 10

Braintree dependencies:

  • com.braintreepayments.api:braintree:3.15.0
  • com.braintreepayments.api:three-d-secure:3.15.0
  • com.braintreepayments:card-form:5.0.0

Issue description

My application uses Braintree payments with custom ui. When I would implement the 3D Secure method, I got error from Briantree sdk. The own system contains backend, that allocate token for mobiles. The ios version of development are working on production environment (or sandbox), just android not. The sdk description are easy and clean: Put sdk to gradle, Initialize Braintree fragment with received authorization, Create/Get CardNonce and Perform Three Secure verification with lookup listener, and so on. Everything ok. After I would pay on own PaymentFragment I got the following error from Braintree sdk.

The masked url when I receive error: https://api.braintreegateway.com:443/merchants/AABBCC/client_api/v1/payment_methods/AABBCC/three_d_secure/lookup Response code: 500

The next flow is where the code no longer reaches:

ThreeDSecure.continuePerformVerification(braintreeFragment, request, lookup)

Crash log

PaymentFragment: Braintree error com.braintreepayments.api.exceptions.ServerException: {} at com.braintreepayments.api.internal.HttpClient.parseResponse(HttpClient.java:272) at com.braintreepayments.api.internal.BraintreeHttpClient.parseResponse(BraintreeHttpClient.java:138) at com.braintreepayments.api.internal.HttpClient.post(HttpClient.java:219) at com.braintreepayments.api.internal.BraintreeHttpClient.post(BraintreeHttpClient.java:121) at com.braintreepayments.api.internal.HttpClient$2.run(HttpClient.java:186) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919)

Any suggestion? This problem reproducible on any device with any android os version.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
crookedneighborcommented, Jan 11, 2021

^ I’ve confirmed that sending the amount as 100 00 causes a 500 response in our API. I’m going to let our 3D Secure team know about it.

0reactions
sshropshirecommented, Jan 12, 2021

Awesome @hoordev thanks for your feedback. I’m going to close this issue for now since you’re now able to successfully perform a 3DS lookup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: 3d-secure redirect response - Stack Overflow
We have experienced a similar issue with Nordea's 3D Secure page in an Android WebView. It came down to the page trying to...
Read more >
3D Secure flow doesn't appear · Issue #1941 · stripe ... - GitHub
Hi all, I'm trying to integrate Stripe into my Android app. Currently this is my flow: I request my server to create a...
Read more >
Card authentication and 3D Secure | Stripe Documentation
Android. Step 1: The customer enters their card details. Step 2: The customer's bank assesses the transaction and can complete 3D Secure at...
Read more >
Client-Side Implementation | Android - PayPal Developer
You must generate a client token if you want to use 3D Secure (3DS). Tokenization keys can't be used to verify 3D Secure...
Read more >
Android 3D Secure 2 SDK - Adyen Docs
Android 3D Secure 2 SDK. Support 3D Secure 2 authentication on your Android app. This page is for our Classic API ( /authorise...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found