Skip to main content

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.
Payment requests and the API work wherever you are. What your customers need is in Where Pesso works.
1

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.
2

Add a webhook endpoint

Use a public https URL. Copy the signing secret, whsec_… — also shown once.
3

Create a payment request

201 Created
Save 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.
4

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
There is no test mode. This is a real payment in USDC on Base. Use "0.01" and pay from another Pesso account of your own.
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.