Flows
ZBD collects tax information within these flows when a payout requires it.
If a user opens the cash out flow before they’ve verified or chosen a payment method, the widget takes them through those steps first.
Embedding a flow
1
Create a session with the flows you need
Call Create a Session from your server with the
flows this session can open, for example ["kyc"] at signup. Your API key never reaches the browser or game client, and the user can’t open a flow you didn’t list. The response includes a widget_url.2
Load the widget
Load the URL in an iframe or WebView at the point in your product where the flow should appear. See Code examples.
3
Listen for events
Your frontend receives browser events as the user moves through the flow, for example when they finish verification or add a payment method. Payout status changes reach your backend by webhook.
["kyc", "payment_methods"] can run identity verification when a creator signs up, and payment method selection before their first payout.
Embed parameters
These control how the widget looks. Add them as query parameters on thewidget_url returned by Create a Session. Don’t build the widget URL or hostname yourself, and choose flows on the session, not in the URL.
The
balance and history components only apply if ZBD tracks earnings.
Code examples
- Web
- Unreal
- Unity
allow attribute.