yii2-cashier icon indicating copy to clipboard operation
yii2-cashier copied to clipboard

Redirect to Stripe checkout to not manage the credit card data

Open dantart opened this issue 4 years ago • 0 comments

Is it possible to use this module to create a subscription where the flow is redirect to Stripe so user put the credit card in Stripe?

I see the method: $user->newSubscription('main', 'monthly')->create($creditCardToken);

but I don't want to "host" the credit card input data, so I'd like to create the subscription session id, so I can redirect user to stripe checkout as shown in https://stripe.com/docs/billing/subscriptions/checkout

Is this possible?

dantart avatar Nov 25 '20 21:11 dantart