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

PaymentIntents and subscriptions #159

@willvlad

Description

@willvlad

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions