Autofleet / locomotion

An open-source rider/passenger mobile app written in React Native and Node.js that can be customized and modified to support any ride-hailing
MIT License
33 stars 13 forks source link

Can't get user coupon #838

Closed joseuride closed 3 months ago

joseuride commented 3 months ago

Hi Team,

I am working on the coupon feature for a ride. However, I encountered this error when fetching the '/me/customers/coupon' API: 'NO_COUPON_ASSIGNED_TO_CUSTOMER'. How can I assign a coupon to a customer? I have tried looking on the Control Panel Admin page, but I couldn't find where to manage these coupons.

Screenshot 2024-08-05 at 17 02 10

michalbanin commented 3 months ago

Promo codes are created through stripe, and can be assigned through stripe to specific clients or used by all. Attaching deck explaining how to create these, you need to create it in your Stripe Staging env, to which our staging env is currently connected. Creating promo codes on Stripe (2).pdf