# Splitting one-off payments

The Stripe Connect - Marketplace enables you to split payments between your platform and merchants who are selling goods/services on your platform. For example, if you're running an eCommerce marketplace like Etsy, the plugin allows your marketplace to take a % of each sale made by sellers on the marketplace.

### Video tutorial

The below video tutorial demonstrates how to split a one-off payment:&#x20;

{% embed url="<https://www.youtube.com/watch?v=wx4gS2vdSh4>" %}

### Steps involved in splitting a one-off payment

There are 5 workflow actions involved splitting a one-off payment:\
\
1\. Create a new data type called "Transaction" - this is a data type created to record details of each transaction.&#x20;

You can of course use another custom data type to record details. See the '[Saving down details of a transaction](/stripe-connect-marketplace/implementing-key-features/saving-down-details-of-a-transaction.md)' section of the documentation for full instructions on how to record details of a transaction and the [database setup](/stripe-connect-marketplace/implementing-key-features/checkout-sessions-and-payment-forms.md#database-setup) of the Checkout Session page for an overview of setting up your database.

\
2\. Create a checkout session using the "Stripe Connect - Create Checkout Session" workflow.\
\
**When inputting the "Success URL" and "Return URL" fields, include a page URL parameter that contains the transaction's unique ID.**\
\
3\. Save the "Checkout Session ID" of the transaction to your transaction.\
\
4\. Navigate to the Stripe Checkout Session URL created in step 1\
\
5\. **(OPTIONAL)** Create a workflow that runs on page load ONLY when the transaction page URL parameter you created in step 1 is NOT empty. I typically use this workflow and the  "Stripe Connect - Retrieve Checkout Session Details" API call to update the various fields associated with the "transaction".<br>

### Demo app

You can view an example of the database setup and workflow actions in the demo app at the below link (relevant section is the 'Creating Stripe checkout sessions (one-off payments)' section):

{% embed url="<https://stripeconnectmarketplace.bubbleapps.io/version-test>" %}

The editor is public and can be accessed by clicking the 'View Editor' button at the top of the page.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cranford-tech.gitbook.io/stripe-connect-marketplace/implementing-key-features/splitting-one-off-payments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
