How to use stripe coupons in accesstype
- Create a coupons in stripe
Navigate to coupons page in stripe and create a coupon
- Add custom attributes in a plan in accesstype
- Navigate to plans page in accesstype and scroll to Custom Attributes field
- Click on Add Attribute button, once inspecter opens in the right site, add (allow_stripe_coupon) in the Name field and Type field can be any and click on add.
- Stripe checkout page
When user purchase the plan which has custom attributes will show the option to add the coupon in the checkout page.