Prerequisites
- A Pesso account on the Business plan, which includes API keys and webhooks. See plans.
- A server that can make HTTPS calls and receive a webhook.
Get an API key
Copy it now — Pesso shows it once. It looks like
psk_ followed by 43 characters. Keep it on your server, never in a browser or an app.Create a payment request
201 Created
id with your order and redirect your customer to url.concept takes a string or a JSON object. With an object, the first key’s value is the headline your customer sees, and the other keys follow as labelled rows. How concept renders, or try it in the playground.Pay it, and get the webhook
Open
url signed in to a second Pesso account that holds USDC, and pay. Pesso refuses a payment to your own request. Your endpoint receives:payment.succeeded
data.concept arrives as a JSON string — JSON.parse it. Match data.requestId to your order, then verify the signature before you trust it.Next
Webhooks
A complete handler, signature checks and retries.
Go live
Errors, edge cases and a checklist before your first real customer.