Closed loicparent closed 2 years ago
Sorry to delay the reply. Does the error occur in non-subscription payments? Or just occur with only a subscription payment?
Thanks.
Hi @hideokamoto,
Thanks for your reply!
I tried several things and the error appears because I have tested on the browser using ionic serve
(my mistake).
When I try on the ios simulator, I don't have this error anymore.
However, after the function Stripe.createPaymentSheet()
, when I call the function Stripe.presentPaymentSheet()
, the modal appears a short time with a loader but then disappears directly. I can see in the console that the event PaymentSheetEventsEnum.Failed
is called too.
Demo: link to video
So very similar to this issue: https://github.com/capacitor-community/stripe/issues/106
Do you know what I have to change?
I am gradually approaching :)
Thanks, Loïc
Hi @hideokamoto,
Ok I see what was wrong. I used the secretKey (sk_test…) instead of the publicKey (pk_test…). After changing this, I have no more error, the payment modal appears correctly and the payment process works fine.
Now I will try the ApplePay and GooglePay tools :)
Regards
@loicparent Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022. https://github.com/capacitor-community/stripe/issues/145 Thanks.
Hello,
I try to setup a payment subscription using this plugin.
Description of the issue:
I retrieve correctly (from the server) the 3 keys required for the function "Stripe.createPaymentSheet". But, when I log this function, I see nothing in the console.
When I call then this function "Stripe.presentPaymentSheet", I have an error returned:
Could someone helps me to understand what's wrong?
More information:
Thanks and have a nice day Loïc