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

Creating a subscription fails on the backend #2

Open
anchetaWern opened this issue Dec 4, 2020 · 1 comment
Open

Creating a subscription fails on the backend #2

anchetaWern opened this issue Dec 4, 2020 · 1 comment

Comments

@anchetaWern
Copy link

Hello. Thanks for this tutorial: https://codenebula.io/node.js/stripe/sca/2020/03/03/how-to-use-stripes-new-payment-intents-api-with-node-js-to-create-subscriptions-with-built-in-sca/

I couldn't move on further because this part is failing for me:

const subscription = await stripe.subscriptions.create({
  customer: customer.id,
  items: [{
    plan: customerInfo.planId,
  }],
  expand: ["latest_invoice.payment_intent"],
});

return subscription;

I'm getting this error:

Payment for this subscription requires additional user action before it can be completed successfully. Payment can be completed using the PaymentIntent associated with `subscription.latest_invoice`. Additional information is available here: https://stripe.com/docs/billing/subscriptions/overview#requires-action
@romain130492
Copy link

got the same, made a PR to resolve that. I has to do with stripe API changes

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