capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
https://capacitor-community-stripe.netlify.app/
MIT License
198 stars 77 forks source link

Discover multiple readers with different methods #380

Closed kyleabens closed 2 weeks ago

kyleabens commented 2 months ago

Not sure if it's possible in it's current state (doesn't look like it is) but can we please discovery multiple readers at once so we can list all options. I'm currently trying to do the following but doesn't seem to work.

const tapToPay = await StripeTerminal.discoverReaders({
        type: TerminalConnectTypes.TapToPay,
        locationId: ***********
      });

      const bluetooth = await StripeTerminal.discoverReaders({
        type: TerminalConnectTypes.Bluetooth,
        locationId: ***********
      });

      const internet = await StripeTerminal.discoverReaders({
        type: TerminalConnectTypes.Internet,
        locationId: ***********
      });
rdlabo commented 2 months ago

DiscoverReaders cannot be done at the same time. If you do not cancelDiscoverReaders , you will not be able to search for another method. This is a Stripe Terminal specification.

rdlabo commented 2 weeks ago

This Issue is closed due to a long period of inactivity. If you still have issues, please open a new Issue. Best regards.