#tehalsingh_22956
1 messages · Page 1 of 1 (latest)
I'm creating a subscription which has metered plan. So in this case my subscription initial goes to active. Event card authencatication is still required.
What do you mean by "Event card authencatication"?
you can check evt_1NaZS6CDMd8oJhR4fVoPU5Q3 this event. Here i want default subscription status to incomplete As it has pending_setup_intent and need to card authentication requried by customer . So subscription status will be active once after the customer authenticate their card either using payment_intent or using the pending_setup_intent.
You mean you don't want to start the Subscription before the Customer adds their card?
No, I want don't start the Subscription until customer authenticate their card. for example my card is 4000002760003184 which is a type of Always authenticate.
That's exactly what I described.
You want to add the card, authenticate it, and then start the Subscription, correct?
Yes
I recommend using SetupIntents to add and authenticate the card first: https://stripe.com/docs/payments/save-and-reuse
And then use the created Payment Method to create the Subscription.
Is there any other solution rather than setup intent as the Sdk i'm using don't have the setup intent class
What SDK are you using? It's a basic component of our API.
Laravel/Cashier 7
We don't officially support it, but you need to reach out to your SDK provider and ask if there's a solution to use SetupIntents. It's the basic functionality, so if your SDK doesn's support it I would strongly recommend looking for another one.
You can use our official stripe-php package: https://github.com/stripe/stripe-php