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

Problem with 3D Secure in Android #10

Closed
javiervaldeslz opened this issue Dec 11, 2018 · 2 comments
Closed

Problem with 3D Secure in Android #10

javiervaldeslz opened this issue Dec 11, 2018 · 2 comments

Comments

@javiervaldeslz
Copy link

Hi,

I am trying to use react-native-braintree-payments-drop-in to pay with 3D Secure, following the instructions of the Readme. It works properly in iOS but fails in Android - always get:

3DSECURE_NOT_ABLE_TO_SHIFT_LIABILITY: [Error: 3D Secure liability cannot be shifted]

My versions are:

"react": "16.3.1",
"react-native": "0.55.4",
"react-native-braintree-payments-drop-in": "1.0.1"

I have configured the browser switch as the documentation says:

<activity android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
       android:launchMode="singleTask">
       <intent-filter>
           <action android:name="android.intent.action.VIEW" />
           <category android:name="android.intent.category.DEFAULT" />
           <category android:name="android.intent.category.BROWSABLE" />
           <data android:scheme="com.myapp.braintree" />
       </intent-filter>
     </activity>

This is how I am using it:

BraintreeDropIn.show({
        clientToken: token,
        threeDSecure: {
          amount: 0.99,
        },
      })
      .then(result => {
        console.log(result);
      })
      .catch((error) => {
        if (error.code === 'USER_CANCELLATION') {
          console.log('Cancelled by user: ', error);
        } else if (error.code === '3DSECURE_NOT_ABLE_TO_SHIFT_LIABILITY' || error.code === '3DSECURE_LIABILITY_NOT_SHIFTED'){
          console.log('Error with 3D Secure during payment ', error.code, ': ', error);
        } else {
          // update your UI to handle other errors
          console.log('Error during payment: ', error);
        }
      });

Also, I have tried including the ThreeDSecureWebViewActivity but I get the same error:

      <activity android:name="com.braintreepayments.api.threedsecure.ThreeDSecureWebViewActivity" ></activity>

Thanks

@Minishlink
Copy link
Contributor

This is due to your configuration. Please contact Braintree for help if you need some

@stravi
Copy link

stravi commented Feb 11, 2020

@javiervaldeslz what was the solution to your problem? How did you end up handling 3DSECURE_NOT_ABLE_TO_SHIFT_LIABILITY and 3DSECURE_LIABILITY_NOT_SHIFTED? Perhaps you can help and answer this #30

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

3 participants