#Ronit
1 messages · Page 1 of 1 (latest)
Hi there!
Can you give more context on your integration and what exactly you are trying to do?
i had added processPayment function for process payment in ios side but what if user want to cancel the payment how does he can do so i had added Terminal.shared.cancelPaymentIntent
i am recieving this error cancel Payment failed: Could not execute cancelPaymentIntent because the SDK is busy with another command: collectPaymentMethod
Thanks, give me a few minutes to look into this.
ok
collectPaymentMethod is SCPCancelable, so it can be cancelled.
See here: https://stripe.dev/stripe-terminal-ios/docs/Classes/SCPTerminal.html#/c:objc(cs)SCPTerminal(im)collectPaymentMethod:completion:
And here: https://stripe.dev/stripe-terminal-ios/docs/Classes/SCPCancelable.html#/c:objc(cs)SCPCancelable(im)cancel: