react-native-braintree-xplat
react-native-braintree-xplat copied to clipboard
can only use lower 16 bits for requestCode
Here is issue in native code
(getCurrentActivity()).startActivityForResult(
paymentRequest.getIntent(getCurrentActivity()),
PAYMENT_REQUEST
);
PAYMENT_REQUEST request code getting issue when starting activity for result.
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.