-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readCancelled on collecting second payment. #346
Comments
Did you run |
Note) In some cases, it may be more convenient to remain connected to the READER when making successive payments. For this reason, automatic disconnection is not performed. |
No, i did not disconnect reader because I want to keep it connected to accept multiple payments. |
I have just tried it and it works fine at iOS. (async ()=> {
await StripeTerminal.initialize({ tokenProviderEndpoint: 'https://example.com/token', isTest: true })
const { readers } = await StripeTerminal.discoverReaders({
type: TerminalConnectTypes.TapToPay,
locationId: "**************",
});
await StripeTerminal.connectReader({
reader: readers[0],
});
// first payment
await StripeTerminal.collectPaymentMethod({ paymentIntent: "**************" });
await StripeTerminal.confirmPaymentIntent();
// second payment
await StripeTerminal.collectPaymentMethod({ paymentIntent: "**************" });
await StripeTerminal.confirmPaymentIntent();
await StripeTerminal.disconnectReader();
}); @divyesh-savaliya If you can't get it to work, give me a small reproduction code. |
I am also running into this issue. There is an issue on the official stripe ios github: stripe/stripe-terminal-ios#300 EDIT: What is odd is that sometimes it works but most of the time it will cancel ![]() |
Hey all, I believe this issue can be closed as it was a bug with iOS. Per Stripe's official ios github: stripe/stripe-terminal-ios#300
|
Thanks for doing the research. Perhaps I couldn't reproduce it because I checked on a different iOS. I will close it as it was not a plugin issue. |
Platform
Describe the bug
collectPaymentMethod
failed while accepting another payment with errorreadCancelled
To Reproduce
First payment successful, when accepting payment again
collectPaymentMethod
failing with this errorError (read): readCancelled
{"message":"The command was canceled.","errorMessage":"The command was canceled."}
Using Function:
The text was updated successfully, but these errors were encountered: