mardi 3 janvier 2017

Can I apply a coupon to a one time charge using Laravel Cachier (Stripe provider)?

I have seen in the laravel docs that coupons can be applied to subscriptions.

$user->newSubscription('main', 'monthly')
     ->withCoupon('code')
     ->create($creditCardToken);

What I wanted to know, is - can coupons be applied to one time charges?

$user->charge(100);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire