i trying implement quantity increment laravel cashier uses stripe. able set quantity when create new subscription this:
// works! $user = user::find(4); $user->subscription('monthly')->quantity(5)->create($token); but when try update quantity number existing subscription, doesnt work:
$user = user::find(4); $user->subscription()->increment(5); // doesnt work neither $user->subscription()->updatequantity(5); when go stripe's payment page, still on 1 quantity , doesn't show increased quantity there. have got wrong? supposed token , pass token again on update? read laravel doc , followed says: http://laravel.com/docs/5.1/billing#subscription-quantity
i've got laravel 5.1
okay, misunderstood how stripe shows subscription increment(). basically, reason increment wasnt showing in payment page because payment increment update not processed immediately. increment added pending invoice amount adjusted pro-rata based. means, in next billing cycle, user charged following:
1) refund of pro-rata based unused time on plan after increment change
2) + remaining time on month increment + 1 number of plans date of change billing date
3) + 1 month advance of increment + 1 number of plans billing date.
these charges listed in next invoice , payment processed in next billing date.
Comments
Post a Comment