capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 75 forks source link

PaymentFlowEventsEnum.FailedToLoad always triggered #357

Open lsantaniello opened 3 weeks ago

lsantaniello commented 3 weeks ago

Platform

Describe the bug I Implemented Payment Flow without customer in my ionic capacitor angular app but When I create Payment Flow, the FailedToLoad event always triggered.

PaymentFlowEventsEnum.FailedToLoad always triggered.

   Stripe.addListener(PaymentFlowEventsEnum.FailedToLoad, () => {
      console.log('PaymentFlowEventsEnum.FailedToLoad');
    });

In the demo there is a method createPaymentFlow(withCustomer = true) but it is called always with withCustomer=true.

I seen that demo receives three parameters:

In my app I create payment Intent server side with one parameter:

My server id developed in PHP

My question is: Is it ok or all parameters are required?

Using Function: