# Store Credits process

In order to send a payment to an affiliate using Store credit, go to **Payouts** > **In-app payment >** Locate the payment you want to process. There are 2 possible cases: **Store Credit self-redemption** enabled and **Store Credit self-redemption** disabled.

A. If the **Store Credit self-redemption** is **disabled**, processing the payment will send a discount code to the affiliate. Simply click locate the payment in the Payments tab, and then click on **Give discount code.**

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FpkQc6RePDrOXpjcWosAM%2Fimage.png?alt=media&#x26;token=3b248278-55b5-4259-9a85-e22bd42627b7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FNFdkjLmwTa6Fq3wJ4W9G%2Fimage.png?alt=media&#x26;token=c0530d1a-a02e-4dff-b422-02958ef2ae46" alt=""><figcaption></figcaption></figure>

The system will then automatically create a random discount code with the exact commission amount you need to pay your affiliate.

The discount code will be displayed in the **Affiliate admin account** > **Payment** tab > **Detail** here:

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FirhBBtEsSoiFS1PGiwsE%2Fimage.png?alt=media&#x26;token=282244d6-20ae-41b6-b412-d4fbc5b4b5cd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2Fs9BMS1o3bZwTPxFWWR5b%2Fimage.png?alt=media&#x26;token=59bf2539-9e60-405a-8455-06dbd822b58b" alt=""><figcaption></figcaption></figure>

B. If the **Store Credit self-redemption** is **enabled**, processing the payment will add some credits to the affiliate's store credit balance. From the store credit balance, your affiliate can freely generate discount codes with any value they want. On the merchant admin, simply go to **Payments > In-app Payment > Pay with Store credit** to process the payment.&#x20;

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FtUgBIow3fbAhmbmLsemw%2Fimage.png?alt=media&#x26;token=7d2ec1e7-fcb4-4920-8013-11ecefe5bd97" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FTQJlXlymh7XDWVNpEhL8%2Fimage.png?alt=media&#x26;token=8041c940-0d65-4ffa-9954-a107ed2f8c13" alt=""><figcaption></figcaption></figure>

The Store credits will be added, and the affiliate can see their current store credit balance on their dashboard.

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FJvy7dmyTyOBJjipTCnkw%2Fimage.png?alt=media&#x26;token=e2d2a7ca-fdcf-4c11-81f6-031a0a441b73" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2F1nVuVSTv3TqzHLKyjHQR%2Fimage.png?alt=media&#x26;token=6ff79ca7-0912-4b4e-9bf5-e65e37b31783" alt=""><figcaption></figcaption></figure>

On the **Affiliate account page** > **Payment** > **Use your credit**, the credit balance will be shown and your affiliates can enter their preferred coupon value to get the code:

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FuIR6M5nFN83faVukqWBY%2Fimage.png?alt=media&#x26;token=e6556045-901f-4a0a-983e-e1b78acf25cc" alt=""><figcaption></figcaption></figure>

***For example***, if the affiliate chooses $10 as the value of the generated coupon, a coupon will be auto-generated on your Shopify Discounts section. The affiliate can copy the coupon and use it on the checkout page to save $10 on his/her purchase:

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2F6CwaM4GcKxJnIOc26wdi%2Fimage.png?alt=media&#x26;token=91245a96-be95-411e-8a23-06be0d2f50e9" alt=""><figcaption></figcaption></figure>
