react-native-braintree-xplat icon indicating copy to clipboard operation
react-native-braintree-xplat copied to clipboard

can only use lower 16 bits for requestCode

Open HemrajLodha opened this issue 6 years ago • 1 comments

Here is issue in native code

(getCurrentActivity()).startActivityForResult(
      paymentRequest.getIntent(getCurrentActivity()),
      PAYMENT_REQUEST
    );

PAYMENT_REQUEST request code getting issue when starting activity for result.

HemrajLodha avatar Mar 22 '18 07:03 HemrajLodha

In Braintree.java in the package folder, change the payment request number from 1706816330 to the following: private static final int PAYMENT_REQUEST = 65535; This is because the original number is more than 16 bits and will not work.

StephenTANM avatar Apr 03 '18 16:04 StephenTANM