question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

createPaymentFlow does not work without defining a customerId

See original GitHub issue

If customerId is null or not present, it does not work. However, if an empty string is assigned, it works again.

Does not work

const results = await Stripe.createPaymentFlow({
  paymentIntentClientSecret: paymentIntent.client_secret,
  customerEphemeralKeySecret: paymentIntent.id
});
await Stripe.presentPaymentFlow();

Work.

const results = await Stripe.createPaymentFlow({
  paymentIntentClientSecret: paymentIntent.client_secret,
  customerEphemeralKeySecret: paymentIntent.id,
  customerId: ''
});
await Stripe.presentPaymentFlow();
  • OS: Android

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rdlabocommented, Mar 18, 2022

@tanrax I can’t wait for your app to be released and used by the masses! I’m looking forward to hearing from you.

1reaction
tanraxcommented, Mar 17, 2022

Not at the moment, we won’t release the first beta for another month. In any case, I will keep you informed. Thank you very much, from the bottom of my heart, for the good support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Payment Intent is not defined:TypeScript - Stack Overflow
Looks like TypeScript is unable to determine subscription.latest_invoice as an Invoice object.
Read more >
Payment Methods API | Stripe Documentation
The Payment Methods API allows you to accept a variety of payment methods through a single API. A PaymentMethod object contains the payment...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found