You can incentivize users with coupons. This video shows how to implement a coupon system.
- [Instructor] So, our checkout is looking pretty solid,…- [Instructor] So, our checkout is looking pretty solid,…but it's missing one major feature,…but it's missing one major feature,…and that's the ability to accept coupons.…and that's the ability to accept coupons.…So, here, inside of our checkout function,…So, here, inside of our checkout function,…before we do our if statement…before we do our if statement…to see if it's a POST or a GET,…to see if it's a POST or a GET,…let's go ahead and set a list of coupons…let's go ahead and set a list of coupons…that we want to allow on our site.…that we want to allow on our site.…So we're going to go ahead and say coupons is equal to,…So we're going to go ahead and say coupons is equal to,…and let's just have this be a dictionary of coupons.…and let's just have this be a dictionary of coupons.…So for example, we might have a coupon…So for example, we might have a coupon…that is about Halloween, 'kay?…that is about Halloween, 'kay?…And this Halloween coupon, its value is going to be 31,…
Released
3/1/2019- Using APIs
- Leveraging the Stripe dashboard
- Building a checkout page
- Configuring payment periods
- Working with the Stripe frontend
- Handling data
- Implementing a coupon system
- Processing payments
- Analyzing Stripe data
- Creating user models
- Allowing for subscription cancellations
Share this video
Embed this video
Video: Coupons