capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
https://capacitor-community-stripe.netlify.app/
MIT License
196 stars 77 forks source link

How to see payment flow failed reason #203

Closed briangitrepo closed 1 year ago

briangitrepo commented 2 years ago

Platform

Describe the bug

I have set up the listener Stripe.addListener(PaymentFlowEventsEnum.Failed, () => { console.log("PaymentFlowEventsEnum.Failed"); });

But I am wondering if there is a way to get the actual error message for why the payment flow failed. I can see it in the native log but I want to access the actual error message in the typescript file. Is this possible?

rdlabo commented 2 years ago

Hi, thanks for issue.

You are right. I add method string return, and some update: https://github.com/capacitor-community/stripe/commit/d0daa9f9d99fd5aabdde54aae60971344c5f3004

Note, however, that this is a change from Capacitor4.

rdlabo commented 1 year ago

This Issue will be closed because it has not been updated for a long time. If you encounter similar problems, please start a new Issue.