Closed Roniy08 closed 12 months ago
this is the expected behavior for cancelling collectPaymentMethod
. This is the same as if you programmatically cancelled with the cancelable or if the customer cancelled collecting on a WisePad 3.
the cancel payment should go directly to the cancel payment.
If you mean the PaymentIntent should be cancelled that requires your integration to do that. The SDK doesn't make that assumption because its valid for you to recollect with that same PaymentIntent
closing this as this is the expected behavior but re-open if I misunderstood. If you need more help with how to handle cancel and calling cancelPaymentIntent feel free to reach out to https://support.stripe.com/
Summary
when user press cancel on Tap and Pay option in payment that goes directly in failed and return Error : "Command cancelled" error code: 2020
Code to reproduce
self.collectCancelable = Terminal.shared.collectPaymentMethod(paymentIntent) { collectResult, collectError in }
iOS version
iOS 16.7.2
Installation method
pod file
SDK version
pod 'StripeTerminal','2.21.0'
Other information
the cancel payment should go directly to the cancel payment.