We’ve grouped our recipes into the following areas:
If you’re new to Stripe, you may want to start with the Switching Your Integration to Stripe recipe instead.
Although the recipes below cover some specific business models, you may find they have practical knowledge that you can apply to your own Stripe integration.
Collect your customers’ payment information easily and securely on the web using one of our recommended payments integrations. These recipes walk through how to further customize the payment process with additional features.
- Using Stripe Elements in React: Securely collect sensitive card details using Elements in a React application with the react-stripe-elements library.
- Supporting a variable amount in the legacy version of Checkout: Add a field to your payments page that enables users to specify the amount to be charged.
- Handling customer card updates on your website: Use the legacy version of Checkout and a PHP script to collect and update card details for your customers.
- Implementing your own coupon system for standalone charges: Create a coupon system that can adjust the amount sent to Stripe for a one-time charge using the legacy version of Checkout.
- Building a custom Checkout integration: Retrieve a token with the legacy version of Checkout and manually send it to the back end with the W3C Fetch API.
Managing recurring payments
Recurring and subscription-based billing is made easy with subscriptions.
- Building a subscription signup form: Create a subscription signup form using the legacy version of Checkout, and use the Stripe API to complete the signup process.
- Creating an installment plan: Implement an installment plan by using a subscription and a webhook to automatically limit the number of recurring invoices.
Building a marketplace
Whether you’re building an e-commerce platform or an on-demand app, you can use Connect to onboard your sellers and get them paid. Each recipe explains how to use Connect for a different type of business model.
- Crowdfunding platform: Build a crowdfunding platform that collects payment information from campaign backers, performing the actual charge when the campaign achieves its funding goal.
- Store builder: Set up your own e-commerce website platform so your users can create their own online stores.
- On-demand app: Provide services to your customers using contractors, who are paid through your platform.
- Building a Seller Dashboard: Learn how to create a dashboard for your Custom connected accounts.
Your server can automatically receive notifications about events that happen in a Stripe account using webhooks.
- Sending emails for failed payments: Watch for account-related events using webhooks and keep your customers notified of any problems with their subscription billing.
- Sending custom email receipts and invoices: Watch for successful charges, then automatically send custom email receipts or invoices to your customers.
- Handling identity verification notifications for Connect Custom accounts: Create a webhook service that emails Custom account owners whenever identity verification information is needed.