1. Register as a Merchant
Currently, merchant registration is handled via our Dashboard. You will receive:merchantId: Your unique identifier.apiKey: Your secret key for authorizing session requests.
2. Request a Setup Session
When a user wants to enable payments for an agent, your backend creates a setup session.sessionToken and a setupUrl.
3. Redirect the User
Send the user to thesetupUrl. There, they will:
- Connect their payment method (Stripe or Wallet).
- Confirm the limits you requested.
- Once finished, they are redirected back to your
redirectUrl.
4. Collect the Delegate Token
After the user completes setup, your agent can retrieve thedelegateToken from your backend (the Vault sends a webhook to your configured endpoint when the session is completed).