This repository was archived by the owner on Apr 19, 2022. It is now read-only.

Description
I've been following the paymentintent SCA docs, but can't get the subscriptions to become active.
They keep showing Incomplete "This subscription will expire tomorrow unless the first payment is completed."
Even though the payment has been taken!
My flow is as follows:
Fetch stripeUrl from front-end => create paymentIntent, customer, plan, subscription on the server
=> send intent.client_secret to the client => Verify SCA => Payment made, but subscription is still showing "incomplete"
const subscription = await stripe.subscriptions.create({
customer: customer.id,
items: [
{
plan: plan.id,
},
],
// trial_from_plan: true,
expand: ["latest_invoice.payment_intent"],
});
For some reason subscription is not tracking the payment status. Any ideas how to make it do so?