#eatstations

1 messages ยท Page 1 of 1 (latest)

drowsy skyBOT
small arrow
amber quartz
#

we are using iOS app, Swift langauge

#

Reader m2

#

Cancel a PaymentIntent from your client using the iOS, Android, or React Native SDK:

amber quartz
#

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?

copper rain
#

Hello ๐Ÿ‘‹
No you don't need to call cancelPaymentIntent

You can use the Cancelable object returned by collectPaymentMethod something like this

self.collectCancelable.cancel()

amber quartz
#

ok

amber quartz
#

Thank You, I will try this

copper rain
#

๐Ÿ‘