Accept a payment
This is the full integration guide for businesses. At the end you’ll have: charges flowing from your backend, agents paying them, webhooks confirming everything, and your money in a merchant balance.Prerequisites
- A console account on a Payzor deployment.
- Your merchant API key (
sk_mch_...). If you don’t have one, see Quickstart step 1.
Architecture
Your server never touches agent wallets directly. You create charges; Payzor moves money and tells you what happened via webhooks.Step by step
1. Create the charge when it’s time to bill
Wherever you’d normally ask for a card:chargeId against externalId in your database.
2. Give the agent something to pay with
The customer’s agent needs to know what to pay. Common patterns:- Your API returns the pay URL. Include
"/charges/<id>/pay"in your API response where an agent would look. - Your docs tell agent developers to wire
POST /charges/:id/payinto their tool loop.
3. Handle the outcomes
4. Verify it landed
PollGET /merchant/me in dev. In production, rely on webhooks (guide).
Reconciliation
Every settled charge carries:chargeId: yours to store,reference: matches the entry in the agent’s audit trail,agentId: who paid.
GET /export/transactions.csv; every fact with sequence number and chain hash.