Skip to content
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

cancelPaymentIntent hang when card reader active #307

Open
toemat opened this issue Jun 5, 2024 · 1 comment
Open

cancelPaymentIntent hang when card reader active #307

toemat opened this issue Jun 5, 2024 · 1 comment

Comments

@toemat
Copy link

toemat commented Jun 5, 2024

Summary

Something that tripped us up for a bit ended up being that calling Terminal.shared.cancelPaymentIntent(_:) never calls back if the card reader is currently listening for a card. The simple solution being to cancel .collectPaymentMethod before, but it took some time to figure that out.

If I may suggest to immediately return an error if cancelPaymentIntent determines it won't be able to complete its task?

(Async version never resolves, and callback version doesn't call back while collectPaymentMethod is running)

SDK version 3.6.0
Reader M2

@toemat toemat changed the title cancelPaymentIntent hang when card reader active cancelPaymentIntent hang when card reader active Jun 5, 2024
@xiaoshen-stripe
Copy link

Thank you for bringing this to our attention!
We are currently discussing this internally to determine the appropriate approach to handle this, will make sure to update here once we align on a solution.

Please do let us know if you notice anything else, we appreciate your feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants