#stantastic_

1 messages · Page 1 of 1 (latest)

hoary geyserBOT
hexed girder
#

not mandatory no

#

that looks like Lavarel Cashier though, so check their docs since maybe it has other requirements or modes

jaunty grove
hexed girder
#

to be clear anyway you can't use the Stripe Billing Portal to create a new subscription

jaunty grove
#

Okay. I'll have another look. I just tried to avoid having any payment related data on my front-end really. I thought it's possible to just create the subscription, redirect to stripe and have users select their payment method of choice there.

hexed girder
#

it's meant for managing a Customer's existing Subscriptions. You create the Subscriptions either using a CheckoutSession, or with a custom payment form with Elements and an incomplete initial Subscription

#

I thought it's possible to just create the subscription, redirect to stripe and have users select their payment method of choice there.
well you can just use Checkout for that. You don't create the Subscription first, you just create a CheckoutSession and redirect the user to its URL, and they enter details there and it creates the subscription

jaunty grove
#

It does create an incomplete subscription since there's no default payment added beforehand.

hexed girder
#

again, no idea how Lavarel wraps this

jaunty grove
#

Alright, I'll dig into it. Thanks for all your information and help.

#

In case anyone will ever look at this...

$user->newSubscription($this>selected_plan, $price)->checkout();