Skip to main content
Allow your connected accounts to complete KYC verification, add payout methods, and withdraw their funds on their own. You can embed the payout portal directly in your app or redirect users to a Whop-hosted portal.

Embedded payout portal

Server side implementation

To use the embedded component, you need to generate an access token for the connected account’s company. This token grants temporary access to the payout portal for that specific company.

Create Access Token API

See the full API reference for generating access tokens and all available parameters

Client side setup

Client side implementation

PayoutsSession Props

The PayoutsSession component requires the following props:
The redirectUrl must be a publicly accessible URL. Localhost URLs (e.g., http://localhost:3000) will not work. For local development, use a tunneling service like ngrok to expose your local server.
You can programmatically open modals using the usePayoutsSessionRef hook:

Available modals

Hosted payout portal

Instead of embedding the payout portal in your app, you can redirect users to a Whop-hosted payout portal. This is useful when you don’t want to build a custom UI or need a quick integration. Create an account link and redirect the user to the returned URL:
In this example:
  • company_id is the platform or connected account
  • use_case specifies the portal type
  • return_url is where the user is redirected when they want to return to your site
  • refresh_url is where the user is redirected if the session expires

Available use cases

After creating the account link, redirect the user to the url returned in the response. The user will complete the payout flow on the Whop-hosted portal and be redirected back to your return_url when finished.

Pay connected accounts

Transfer funds to connected accounts