Collect payments then pay out on your marketplace
Collect payments from customers and pay them out to sellers or service providers on your marketplace.
This guide explains how to accept payments and move funds to the bank accounts of your service providers or sellers. For demonstration purposes, we’ll build a home-rental marketplace that connects homeowners to potential tenants. We’ll also show you how to accept payments from tenants (customers) and pay out homeowners (your platform’s users).
Prerequisites
- Register your platform.
- Add business details to activate your account.
- Complete your platform profile.
- Customize your brand settings. Add a business name, icon, and brand color.
Set up StripeServer-side
Install Stripe’s official libraries to access the API from your application:
Create a connected account
Create a connected account with prefilled information 
Enable payment methods
View your payment methods settings and enable the payment methods you want to support. Card payments, Google Pay, and Apple Pay are enabled by default but you can enable and disable payment methods as needed.
Before the payment form is displayed, Stripe evaluates the currency, payment method restrictions, and other parameters to determine the list of supported payment methods. Payment methods that increase conversion and that are most relevant to the currency and customer’s location are prioritized. Lower priority payment methods are hidden in an overflow menu.
Accept a payment
Use Stripe Checkout to accept payments. Checkout supports multiple payment methods and automatically shows the most relevant ones to your customer. You can accept payments with Checkout using a Stripe-hosted page or add a prebuilt embeddable payment form directly in your website. You can also create a custom flow (using Payment Element) to accept multiple payment methods with a single front-end integration.
Testing
Test your account creation flow by creating accounts and using OAuth.
See Testing for additional information to test your integration.
Disputes
As the settlement merchant on charges, your platform is responsible for disputes. Make sure you understand the best practices for responding to disputes.
Payouts
By default, any funds that you transfer to a connected account accumulate in the connected account’s Stripe balance and are paid out on a daily rolling basis. You can change the payout frequency by going into the connected account’s details page, clicking the right-most button in the Balance section, and selecting Edit payout schedule.
Refunds 
To issue refunds, go to the Payments page. Select individual payments by clicking the checkbox to the left of any payments you want to refund. After you select a payment, Stripe displays a Refund button in the upper-right corner of the page. Click the Refund button to issue a refund to customers for all payments you have selected.
Note
Connected accounts can’t initiate refunds for payments from the Express Dashboard by default. If your connected accounts use the Express Dashboard, you can either process refunds for them, or enable them to process refunds by customizing Express dashboard features.