#benstjohn

1 messages ยท Page 1 of 1 (latest)

cloud knollBOT
shrewd sapphire
#

Can you share the request id?

limpid ridge
#

req_lO5wRVynPFRFw4

visual saddle
#

Hello ๐Ÿ‘‹
Moving the context in the thread here

I just checked Stripe and the payment is cancelled, its just the reader is still stuck

limpid ridge
#

right here @visual saddle

visual saddle
#

I can take a look

#

What method are you calling to cancel this PI?

limpid ridge
#

we're trying to cancel the reader action via the API

#

stripe.terminal.readers.cancelAction

visual saddle
#

M2 Reader doesn't support Server-Driven integration

#

Server-driven integration path is only for WisePos E

limpid ridge
#

okay, how can we cancel the action via the iOS SDK?

#

what function do we call for this?

visual saddle
#

Good question, checking..

limpid ridge
#

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

visual saddle
#

Right, you just want to cancel the collection right?

limpid ridge
#

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

visual saddle
#

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

#

Did that help @limpid ridge ?

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

haughty breach
visual saddle
#

What are you having trouble with?

limpid ridge
#

I think we were missing the "cancelAction" button to actually cancel the "cancellable" item

visual saddle
#

Ah gotcha. Does it work now?

limpid ridge
#

I believe so!

visual saddle
#

Great!

limpid ridge
#

Thanks for the help!

visual saddle
#

NP! ๐Ÿ™‚ Pleasure as always