Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

PaymentIntents and subscriptions #159

Open
willvlad opened this issue Dec 25, 2020 · 0 comments
Open

PaymentIntents and subscriptions #159

willvlad opened this issue Dec 25, 2020 · 0 comments

Comments

@willvlad
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant