Closed kefahB closed 1 year ago
@triniwiz thanks .. please don not forged to take care of #133 please
Hi @justinkurtz
Strange! before those changes the payment always resolve true even if in the reality is not !
Can you share how do you proceed to capturePayment the payment please ? do you use standard or sheet implementation ?
I think I'm using the standard implementation. I've taken this example and modified it:
apps/demo/src/plugin-demos/nativescript-stripe-src/std-view/stripe.service.ts
I see now that the capturePayment method has been changed since I originally adapted it to my project. Previously (in the commented out code) it just made an HTTP post and returned that. Seems as though I need to adapt the new code in capturePayment from that example.
I wonder if we can add a null safe navigation operator to support use cases that don't immediately confirm payment intents or use 3DS. Changing this line to the below would give more flexibility and make it backwards compatible.
if(!value._native?.lastPaymentError || value._native?.lastPaymentError == "undefined") {
Effectively it is a good idea .. @triniwiz what do you think ?
Sounds good 👌
Thank you both! I'll create a pull request! ❤️
Hi @triniwiz,
I've fixed the issues #134 and #137 and partially the #135, this fixe reduce the number of call but not fixe it definitely