#Bojana - trial without payment method

1 messages · Page 1 of 1 (latest)

placid jetty
#

Good question, checking in to how to do that

placid jetty
#

Apologies for dropping off of this question for a bit. The server got pretty busy.

#

Can you send me the code that you are creating subscriptions with now?

#

I think the code in that doc should work for what you are looking to do. Is there a specific error you are getting back when trying to create the subscription like that?

normal grotto
#

Thanks @placid jetty . Give me a sec. I'll get the code to you. It might take awhile. I'll also try to get my developer to join the convo so thinks don't get lost in translation.

normal grotto
#

@placid jetty , Here is the message from my developer:
I'll try to reproduce what I was doing.

  1. I created a product with trial period on stripe side
  2. I use the Laravel Cashier (Stripe SDK) code to direct the payment side of the stripe from our system

$request->user()->checkout([$request->price_id => 1], [
'success_url' => route('checkout-success') . '?session_id={CHECKOUT_SESSION_ID}',
'cancel_url' => route('checkout-cancel'),
'mode' => 'subscription'
])

where
$request->user - auth user
$request->price_id - subscribe product id
3. I was directed to the payment page with the payment method