Skip to content

Creating a subscription fails on the backend #2

@anchetaWern

Description

@anchetaWern

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions