#benstjohn
1 messages ยท Page 1 of 1 (latest)
Can you share the request id?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_lO5wRVynPFRFw4
Hello ๐
Moving the context in the thread here
I just checked Stripe and the payment is cancelled, its just the reader is still stuck
right here @visual saddle
we're trying to cancel the reader action via the API
stripe.terminal.readers.cancelAction
M2 Reader doesn't support Server-Driven integration
Server-driven integration path is only for WisePos E
okay, how can we cancel the action via the iOS SDK?
what function do we call for this?
Good question, checking..
Would it be cancelSetupIntent?
basically the payment intent has already been sent to the Terminal via Terminal.shared.retrievePaymentIntent
so that payment status is "requires_payment_method" or something like that
Actually it wouldn't be cancelSetup
Right, you just want to cancel the collection right?
since it already has an existing payment intent retrieved
ya
just want to cancel the "collection" mode on the terminal
and we can clear the PI via the API, but can't cancel the actual terminal
As far as I can remember the collectPayment method returns a cancellable object which you'd need to use to cancel the collection
Not sure if the docs have aa section about this
The cancellable object as you can see in the example
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=ios#:~:text=%3A true)-,self.collectCancelable%20%3D%20Terminal.shared,-.collectPaymentMethod(
Did that help @limpid ridge ?
Trying right now @visual saddle
thanks!
@visual saddle can you take a look at our code here?
trying to figure out what's going wrong
What are you having trouble with?
I think we were missing the "cancelAction" button to actually cancel the "cancellable" item
Ah gotcha. Does it work now?
I believe so!
Great!
Thanks for the help!
NP! ๐ Pleasure as always