> For the complete documentation index, see [llms.txt](https://developers.rewardful.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.rewardful.com/getting-started/stripe-integration/stripe-custom-coded-guides.md).

# Stripe Custom Coded Guides

Integrating Rewardful with your Stripe purchase flow requires three key components.

1. Installing the Rewardful Stripe app
2. Installing the Rewardful tracking script on your marketing website and application
3. Inserting referral metadata into the Stripe customer record

From here there are a variety of different ways that you can implement this depending on how you’ve implemented your Stripe checkout flow. The following guides provide specific details for integrating Rewardful in a variety of different ways.

<table data-view="cards" data-full-width="true"><thead><tr><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Client-Side Checkout</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2FLDiG12oW2VNKQvIFmY50%2FClient%20side%401x.png?alt=media&amp;token=736f4ee4-4931-4a2e-bcf0-fbb02a71a940">Client side@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/4209748-stripe-checkout-client-side-integration">https://help.rewardful.com/en/articles/4209748-stripe-checkout-client-side-integration</a></td></tr><tr><td>Server-Side Checkout</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2F5XbmL2isf55SncRyp18V%2Fserver%20side%401x.png?alt=media&amp;token=c018aac0-1760-41a2-9832-6bb618f2711d">server side@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/9014067-integration-using-stripe-server-side-checkout">https://help.rewardful.com/en/articles/9014067-integration-using-stripe-server-side-checkout</a></td></tr><tr><td>Payment Links</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2FnQorSz38TtmarovGXkiP%2Fpayment%20links%401x.png?alt=media&amp;token=6ed96b29-a1bb-404b-b618-89e04bcf8291">payment links@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/14852640-integration-with-stripe-payment-links-method-a">https://help.rewardful.com/en/articles/14852640-integration-with-stripe-payment-links-method-a</a></td></tr><tr><td>Buy Button</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2FZ9VT81KOiNMQMHUIGqZm%2Fbuy%20button%401x.png?alt=media&amp;token=2bd578c6-4832-484a-92d8-f6fc93d21647">buy button@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/14852911-integration-with-stripe-buy-button">https://help.rewardful.com/en/articles/14852911-integration-with-stripe-buy-button</a></td></tr><tr><td>Pricing Table</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2FpHYEhBXZi2H6qCOZp8p0%2Fpricing%20table%401x.png?alt=media&amp;token=6a23014e-e91b-4dec-a0e4-cc97119337ed">pricing table@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/14852974-integration-with-stripe-pricing-table">https://help.rewardful.com/en/articles/14852974-integration-with-stripe-pricing-table</a></td></tr><tr><td>Promo Codes</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2Fc80W6uBBrftR7RGVwJSO%2Fpromo%20codes%401x.png?alt=media&amp;token=7b088699-9f0b-43b0-a538-f66f1ae91cef">promo codes@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/18227243-stripe-promo-codes-integration">https://help.rewardful.com/en/articles/18227243-stripe-promo-codes-integration</a></td></tr><tr><td>NEXT JS</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2FdiL1h231KbBvXiro6IM6%2Fnextjs%401x.png?alt=media&amp;token=1b03f32f-63e2-480f-bc6f-f148f05e7f79">nextjs@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/14856859-next-js-integration-method">https://help.rewardful.com/en/articles/14856859-next-js-integration-method</a></td></tr><tr><td>Rails</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2Fc3r386VNPClRZpKW7UZM%2Frails%401x.png?alt=media&amp;token=36cdb91e-66b4-41ef-92ef-f61a1190a9b4">rails@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/14856138-ruby-on-rails-integration-method">https://help.rewardful.com/en/articles/14856138-ruby-on-rails-integration-method</a></td></tr><tr><td>Django</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2FplPQDO3H1CmS0HLKPbp3%2Fdjango%401x.png?alt=media&amp;token=549025b1-5233-4a3d-885e-d1efd8ca3065">django@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/14856684-django-integration-method">https://help.rewardful.com/en/articles/14856684-django-integration-method</a></td></tr><tr><td>JavaScript</td><td><a href="https://3715955084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8QpBSEENVQIIrPkS3u%2Fuploads%2FnAll3uGNRIIlLyhLNfGp%2Fjavascript%401x.png?alt=media&amp;token=762e20c9-9f61-492c-9fe5-42b78185f5e2">javascript@1x.png</a></td><td><a href="https://help.rewardful.com/en/articles/9014098-javascript-browser-integration-method">https://help.rewardful.com/en/articles/9014098-javascript-browser-integration-method</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.rewardful.com/getting-started/stripe-integration/stripe-custom-coded-guides.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
