💳
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
  • Video tutorial
  • Instructions
  1. Implementing Key Features

Saving down details of a transaction

PreviousAutofill customer detailsNextExpiring Checkout Sessions

Last updated 11 months ago

It is recommended you set up your database as outlined in the '' section so that you can record details of transactions that are processed on your platform.

Video tutorial

The below video tutorial shows how you can save down the paymentIntent ID and paymentIntent Status associated with each transaction (relevant section is from: 35:50 to 43:25).

Instructions

You can save down the following details in the workflow where you're initially creating the Checkout Session:

Name
Notes

amount

returned from workflow action that creates Checkout Session

checkout session id

returned from workflow action that creates Checkout Session

seller account id

returned from workflow action that creates Checkout Session

Each of these values can be obtained directly after you create the Checkout Session and before you navigate to the webpage where the Checkout Session is being hosted - see sample workflow below:

Name
Notes

paymentIntent ID

retrieved on success/cancel URL page using 'Stripe Connect - Get Checkout Session Details' data call

paymentIntent Status

retrieved on success/cancel URL page using 'Stripe Connect - Get Payment Details' data call

The Success URL and Cancel URL are defined when creating a Checkout Session. In order to set which transaction we're retrieving data for on the Success/Cancel URL pages, you can add the unique ID of the transaction created as a page URL parameter when creating the Checkout Session:

When the Success (or Cancel) URL page is loaded, we can then get the paymentIntent ID and paymentIntent Status on page load using two workflow actions:

  • We get the paymentIntent ID by using the 'Stripe Connect - Retrieve Checkout Session Details' data call and using

Note that we're using the unique ID of the transaction in the page URL to search for the relevant transaction to update:

  • We get the paymentIntent status by using the 'Stripe Connect - Get Payment Details' data call and using the paymentIntent ID saved down in the previous step

The remaining values can be retrieved on the Success URL or Cancel URL page (or Return URL page if you're using ). These are the pages the customer is returned after either completing a transaction or cancelling a transaction.

If you're embedding a Checkout Session in a page of your app (rather than navigating to a Stripe hosted page), you will only have a 'Return URL'. See the '' section of the instructions for full details.

embedded checkout sessions
Embedding Checkout Sessions in your app
Checkout Sessions - Database Setup