Enable connected account payouts
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.
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.
Modal methods
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_idis the platform or connected accountuse_casespecifies the portal typereturn_urlis where the user is redirected when they want to return to your siterefresh_urlis 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.

