Closed iborschca closed 2 years ago
Can provide you with all logs, details, help that I can to help you to solve the problem.
@iborschca Unfortunately, I don't have a Wisepad so I can't debug this myself.
A few questions:
capacitor-stripe-terminal
version are you using?Hi.
I found a fix! I replaced discoveryMethod value in the config for Terminal.shared.discoverReaders() with .bluetoothScan value and I managed to connect to the reader. Was before: Now: as per documentation
@iborschca Ah yes, I believe only the Chipper 2x supports Bluetooth proximity.
Are you changing that in the native Swift code?
You can use this in JS instead:
terminal
.discoverReaders({
simulated: false,
discoveryMethod: DiscoveryMethod.BluetoothScan
})
DiscoveryMethod.BluetoothScan
yes this works like a charm as well. Thanks a lot!
@iborschca no problem!
I am using iOS to discover devices. BT permissions are allowed. Simulator works perfect but not a real terminal. The terminal is turned on in the discovery mode (BT icon is blinking). Log from the App: ⚡️ To Native -> App addListener 100936921 ⚡️ To Native -> StripeTerminal addListener 100936922 ⚡️ To Native -> StripeTerminal addListener 100936923 ⚡️ To Native -> StripeTerminal initialize 100936924 ⚡️ TO JS {} ⚡️ TO JS undefined ⚡️ To Native -> StripeTerminal setConnectionToken 100936925 ⚡️ TO JS undefined ⚡️ [log] - Debug: Start discovering readers ⚡️ To Native -> StripeTerminal addListener 100936926 ⚡️ To Native -> StripeTerminal discoverReaders 100936927