Widget Mode
Endpoint
Buyers are purchasing a non-tokenized (off-chain) asset that will be delivered by you (after receiving confirmation via Forte Webhook), directly into their game account.Request Body
You must include eitherbuyer.email or buyer.wallet (or both). Use the same identifier format consistently for a given user across all payment sessions.
Include a unique
idempotency_key per payment attempt to prevent duplicate processing if a request is retried.Response
A201 response indicates the intent was created successfully.
data object to initFortePaymentsWidget — see Integrate Widget.
Redirect Mode
Use redirect mode to send users to a Forte-hosted payment page instead of embedding the widget directly.Endpoint
Response
redirect_url.
Client-side widget events are not available in redirect mode. Use webhooks to track payment status in both modes.
Error Codes
Iferror_code is non-null in the response, the widget will display the appropriate message to the user automatically. Common codes:
| Code | Meaning |
|---|---|
ERR01 | Customer is banned |
ERR03 | Request originates from a sanctioned country |
ERR06 | Customer must complete KYC — widget will display the KYC gate |
ERR15 | Customer’s wallet address is flagged (KYW check failed) |
Next Steps
Integrate Widget
Embed and initialize the Forte Payments widget with the response data