#codingwisely

1 messages ยท Page 1 of 1 (latest)

boreal hingeBOT
timber root
#

Hello and good evening

#

thank you for jumping in to help

#

i have been searching using search on API stripe docs and could not find anything related to grace period

limber kestrel
#

Hi, are you able to share the request where you see the error?

timber root
#

Let me tell you scenario i am afraid to happen:

  1. user subscribe for trial and get 3 days free
  2. user do things in my app
  3. user cancel trial
  4. user subscribe for the same trial and again gets 3 days free.
#

sure, let me check in stripe developer page

#

if i can find it ๐Ÿ˜„

#

here: req_65OJKfNtdNkoM2

#

thi sis the last. one

#

here is the code:

if($user->subscription('default')->stripe_price === $plan['price_id']){
                    //renew it
                     $user->subscription('default')->resume();
                    return redirect('account')->with('success', 'You cant resume trial period');
                }
#

$user->subscription('default')->resume();

#

i see this is a laravel cashier method, and i dont know what is gracePeriod ๐Ÿ˜„

#

got it now.

#

Grace period is cashier method

craggy zinc
#

Sounds like you're unblocked, yes?