yii2mod / yii2-cashier

Yii2 Cashier provides an interface to Stripe's subscription billing services.
MIT License
45 stars 23 forks source link

Redirect to Stripe checkout to not manage the credit card data #20

Open dantart opened 3 years ago

dantart commented 3 years ago

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?