Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lat4732's avatar
Level 12

Whats the difference between coupon and promotional code in Laravel Cashier (Stripe)

Hey!

I'm currently trying to add coupons to payments. I've successfully built interface to add/edit/delete coupons interacting with Stripe API. I already added a new coupon "alexcoupon":

visualization

but when I try

$user->newSubscription('dashboard', $stripe->stripe_price_id)
->withCoupon($request->coupon)
->create($request->paymentMethod, $metadata);

I'm getting:

No such coupon: alexcoupon

Is there a difference between what I'm doing and what I want to do? Is coupon what I actually think it is? What is the difference between coupon code and promotional code in stripe? Help is greatly appreciated!

0 likes
4 replies
lat4732's avatar
Level 12

@jlrdw

This feature is only available for paid Billing users.

What does that mean? Does that mean only subscribed users can apply coupon code?

jlrdw's avatar

@Laralex the paid user of stripe is you, not potential customers yet to make a purchase.

lat4732's avatar
Level 12

@jlrdw So thats why when I create a coupon code and try to pay and apply it while in test mode it says

No such coupon code

Is that right?

Please or to participate in this conversation.