Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PaymentFlowEventsEnum.FailedToLoad always triggered #357

Open
3 tasks done
lsantaniello opened this issue Jun 2, 2024 · 1 comment
Open
3 tasks done

PaymentFlowEventsEnum.FailedToLoad always triggered #357

lsantaniello opened this issue Jun 2, 2024 · 1 comment

Comments

@lsantaniello
Copy link

lsantaniello commented Jun 2, 2024

Platform

  • Web
  • iOS

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:

  • "paymentIntent"
  • "ephemeralKey":
  • "customer"

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

  • paymentIntent

My server id developed in PHP

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

Using Function:

  • Payment Sheet / Payment Flow
@rdlabo rdlabo added bug Something isn't working and removed bug Something isn't working labels Aug 11, 2024
@rdlabo
Copy link
Member

rdlabo commented Aug 12, 2024

I checked and it seems to be working fine in the demo. I think the problem may be elsewhere.

The API for the demo is as follows
https://github.com/capacitor-community/stripe/blob/main/demo/server/src/app.controller.ts#L76-L92

Please ask the Stripe team about the API, as it is not related to the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants