# Promotion codes (discounts)

### **Instructions**

You can create promotion codes and let customers enter them on the Checkout Session page to get a discount on the product / service they are buying.

<figure><img src="https://445589018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOYowMYV4NApuJz7Z6lKJ%2Fuploads%2F862cRCpw1CFbQ9M5u0ys%2F2024-07-12%2008.24.27.gif?alt=media&#x26;token=de6ef83b-de4e-4620-abd9-cc1b914da93d" alt=""><figcaption></figcaption></figure>

To activate promotion codes:

* Go to Product Catalogue -> [Coupons](https://dashboard.stripe.com/test/coupons) in your Stripe dashboard
* Create a new coupon by clicking on the button highlighted below

<div align="left"><figure><img src="https://445589018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOYowMYV4NApuJz7Z6lKJ%2Fuploads%2FmUTZk29thJFe0wcCVWn0%2FScreenshot%202024-07-12%20at%2011.03.35.png?alt=media&#x26;token=8dfe12f3-050b-42cf-ab3c-96a72b473189" alt="" width="563"><figcaption></figcaption></figure></div>

* Create your coupon and add a Code

<div align="left"><figure><img src="https://445589018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOYowMYV4NApuJz7Z6lKJ%2Fuploads%2FBv2euayJYXXHmFUBGnme%2FScreenshot%202024-07-12%20at%2011.05.40.png?alt=media&#x26;token=f38e92fd-ecec-4949-8e86-060ad5ca3294" alt="" width="375"><figcaption></figcaption></figure></div>

* When creating a Checkout Session with the plugin, set the ‘Enable Coupons’ field to ‘yes’

<div align="left"><figure><img src="https://445589018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOYowMYV4NApuJz7Z6lKJ%2Fuploads%2FrlOszxJKdU3ntVRWgFwH%2Fimage.png?alt=media&#x26;token=3119e283-8aee-4ddd-8852-cdff40d74b48" alt="" width="563"><figcaption></figcaption></figure></div>

The user will now have the option to add a promotion code that is linked to the coupon you created in the Stripe Checkout Session.

**Important:** the discount will NOT be split evenly (or pro-rated) between the seller and the platform. The seller will effectively lose out by giving the discount, while your marketplace will get the same amount.

For example, let’s say a seller on your platform is selling a product for $100 and your platform takes a 20% platform fee. If a coupon that provides a 10% discount is used:

* The customer will pay $90 instead of $100
* Your platform will still get 20% of $100 (so $20)
* The seller will get $70

### **Demo App**

You can view an example of the page setup and workflow actions for creating a Checkout Session that allows promotion codes in the demo app at the below link (relevant section is the 'Promotion Codes' section):

{% embed url="<https://stripeconnectmarketplace.bubbleapps.io/version-test>" %}

The editor is public and can be accessed by clicking the 'View Editor' button at the top of the page.<br>
