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
ThePayoutsSession component requires the following props:
| Prop | Type | Required | Description |
|---|---|---|---|
token | string | Promise | Function | Yes | Access token for the session. Can be a string, promise, or function that returns a token. |
companyId | string | Yes | The company ID for the connected account. |
redirectUrl | string | Yes | Absolute URL (e.g., https://yourapp.com/verification-complete) to redirect the user to after identity verification is completed. |
currency | string | No | Currency code (e.g., “USD”). Defaults to “USD”. |
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 theusePayoutsSessionRef hook:
Available modals
| Method | Description |
|---|---|
showChangeAccountCountryModal | Allow users to change their payout account country |
showResetAccountModal | Allow users to reset their payout account |
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: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
| Use case | Description |
|---|---|
account_onboarding | KYC and identity verification |
payouts_portal | Withdrawals, payout methods, KYC, and identity verification |
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.
Related resources
Pay connected accounts
Transfer funds to connected accounts

