Each example is a whole business you can run in test mode: its story (who pays whom, what KetaPay holds and when it releases), the pages each side sees, and one server file in Node and one in PHP with every KetaPay call in the order it happens. Source on GitHub.

Shop checkout

A shop selling its own goods: no seller, the shop ships with its key alone. Also in React.

Marketplace

Goods between customers. Each side approves its step with a one-time code; the platform takes a commission.

Freelance milestones

Services in three stages, delivery with a file, the client accepting stage by stage.

Property

A large sale: deposit, documents and keys as milestones, with a capped commission.

Digital goods

Delivery straight from the escrow.funded webhook, safe to receive twice.

Webhooks

Verify, handle once, catch up after downtime and rotate the secret.

Run one

Every example runs with an sk_test_ key, so no real money moves and every one-time code is 123456.
Then open http://localhost:4242. Node 20.12+, or PHP 8.1+ with Composer for the php/ version. Each example’s README has the details.
Every checkout page has two buttons: one redirects to KetaPay’s checkout, and Pay on this page opens it over the page.