const subscription = await stripe.subscriptions.create({
customer: customer.id,
items: [{
plan: customerInfo.planId,
}],
expand: ["latest_invoice.payment_intent"],
});
return subscription;
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
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:
I'm getting this error: