react-native-stripe-terminal icon indicating copy to clipboard operation
react-native-stripe-terminal copied to clipboard

Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference

Open EthanCents opened this issue 4 years ago • 1 comments

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?

EthanCents avatar Mar 25 '20 17:03 EthanCents

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

davidrichey avatar Apr 14 '20 14:04 davidrichey