💳
Stripe Connect - Marketplace
  • Introduction
    • 👋Welcome
    • Key use cases
    • Key features
  • Getting Started
    • Activating Stripe Connect
    • Adding your icon and branding
    • Installing the plugin
    • Configuring API keys
  • Implementing Key Features
    • Onboarding merchants
    • Checkout Sessions & Payment Forms
    • Splitting one-off payments
      • Autofill customer details
    • Saving down details of a transaction
      • Expiring Checkout Sessions
    • Processing Refunds
      • Insufficient Merchant Account Balance
    • Give merchants access to Stripe Express dashboard
      • Set custom descriptions for charges
      • Allow merchants to set their own payout schedule
    • Splitting subscription payments
      • Allow customers to cancel subscriptions via the Stripe Billing Portal
      • Updating Subscriptions
      • Viewing and downloading invoices for subscription payments
    • Embedding Payment Forms in your app
    • Invoices
      • Creating invoices
      • 'On behalf of' parameter
    • Promotion Codes (Discounts)
    • Integrating Stripe Tax
      • Tax for marketplaces
      • Using a Stripe Webhook to transfer tax to the platform account
  • Common Payment Flows
    • Overview
    • Delayed Payments (escrow-like)
      • Retrieving information on a transfer
      • Canceling an Authorized Payment
    • Shopping Cart Payments with Multiple Sellers
    • Charge a customer using saved payment details
  • Deploying to live
    • Checklist
  • Useful Tips
    • Debugging errors
    • Support
Powered by GitBook
On this page
  • Stripe Checkout Sessions
  • Database setup
  1. Implementing Key Features

Checkout Sessions & Payment Forms

PreviousOnboarding merchantsNextSplitting one-off payments

Last updated 8 months ago

Stripe Checkout Sessions

The Stripe Connect - Marketplace plugin is built on top of Stripe's . Checkout is a pre-built payment form optimised for conversion (read more about it ). Each time a customer goes to purchase a good/service from a merchant on your marketplace, you will use the plugin to create a Checkout Session. The Checkout Session is a programmatic representation of what your customers see on the payment form.

Checkout Sessions can be hosted on a Stripe-hosted webpage or in your own app.

See the '' section of the documentation for instructions on how to embed Checkout Sessions in your app

In the example below, a customer is purchasing a pair of socks for €15. The Checkout Session is hosted on a Stripe webpage (see the URL: 'checkout.stripe.com').

The Stripe Connect - Marketplace plugin allows you to create Checkout Sessions for one-off purchases and for subscription products.

Database setup

You will need to set your database up to process transactions. At a minimum, I recommend you create a custom data type called 'transaction' (or something similar) that has the following fields:

Field
Type
Description

amount

number

the total value of the transaction (in cents, or equivalent)

checkout session id

text

the unique ID Stripe gives to each checkout session

paymentIntent ID

text

a PaymentIntent guides you through the process of collecting a payment from your customer. The paymentIntent ID is the unique ID for each PaymentIntent created

paymentIntent Status

text

the status of each PaymentIntent. Can be used to track the status of transactions.

seller account id

text

the unique ID of the seller's Stripe account

Checkout product
here
Embedding Checkout Sessions in your app