react-native-stripe-terminal
react-native-stripe-terminal copied to clipboard
Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
When trying to discover readers, I'm getting the following error message:
Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
Following the guidance in the README, here's the code I'm running:
StripeTerminal.discoverReaders(
StripeTerminal.DeviceTypeChipper2X,
StripeTerminal.DiscoveryMethodBluetoothProximity
);
Any ideas on how to get past this?
I have only been briefly playing around with the library, this issue might help #23 @EthanCents . It seems discoverReaders takes a third parameter, 0 or 1 to show 0 = not simulated, 1 = simulated