triniwiz / nativescript-plugins

Apache License 2.0
78 stars 50 forks source link

Fix [IOS] Payment Intent status #157

Closed kefahB closed 1 year ago

kefahB commented 1 year ago

@triniwiz IOS return success when failed a 3DS payment.

I think this solution should be the same with android .. I have fixed this issue on android based on the paymentIntent status but I think it should be more complete such this way!

I am a little confused about those status, I think they will not be triggered on the payment process, for that I put them with the success

STPPaymentIntentStatusRequiresPaymentMethod
STPPaymentIntentStatusRequiresSource
STPPaymentIntentStatusRequiresSourceAction

What do you think ?

triniwiz commented 1 year ago

You can always introduce another state

kefahB commented 1 year ago

I think thees status are for internal use by stripe or to show a progress payment with kind of event listener.

we should consider STPPaymentIntentStatusSucceeded and STPPaymentIntentStatusRequiresCapture as success but I think we can keep it as is for the moment