#eatstations
1 messages ยท Page 1 of 1 (latest)
I think you can do: https://stripe.com/docs/api/terminal/readers/cancel_action
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
we are using iOS app, Swift langauge
Reader m2
Cancel a PaymentIntent from your client using the iOS, Android, or React Native SDK:
ok, which method I have call for cancel? using collectCancelable object?
Terminal.shared.cancelPaymentIntent(paymentIntent). this one
for paymentIntent parameter, we have to pass collectCancelable?
Hello ๐
No you don't need to call cancelPaymentIntent
You can use the Cancelable object returned by collectPaymentMethod something like this
self.collectCancelable.cancel()
ok
Thank You, I will try this
๐