Architecture
How a payment travels from the buyer’s wallet to yours, and why the order is only fulfilled once it really has.
A payment, step by step
Section titled “A payment, step by step”-
The order
The buyer chooses Pybara at checkout. Your store creates the order with a random value of its own, kept on your server, which ties the payment to that order, and signs the order’s total with its signing key.
-
The checkout frame
Pybara Wallet’s checkout opens in a frame on your page. Before showing any amount, it checks that your site’s
_pybara-paytoDNS record lists your wallet, and that the payment is for the page’s own address. -
Wallet and token
The buyer connects Pybara Wallet or OISY, and picks a token: ICP, ckBTC, ckETH, ckUSDC or ckUSDT. Pybara checks your store’s signature and quotes the exact token amount for the signed total, at its own price; the buyer sees that quote, valid for five minutes, before confirming. An edited total in the browser fails the signature, and the checkout stops there.
-
The payment
The buyer’s wallet sends the tokens to the settle canister, into a deposit account derived from your account and the order’s value: the deposit can only ever be paid to you, and only once.
-
The split
Settle checks the deposit on the token’s ledger, then splits it: Pybara’s fee, out of which the network fees are paid, and the rest to your wallet. It records the payment in Pybara’s logs, with the account that paid, as the ledger shows it, and Pybara’s verdict: what arrived against the quote.
-
Fulfilment
Your store’s server confirms the payment from Pybara’s logs, by the order’s deposit account, never from what the buyer’s browser reports. The order is marked as paid when the payment was made as quoted, or more, or arrived late but still covers the order at the price when it settled. Anything else puts it on hold, the verdict in its notes: a payment short of its quote, in another token, or without your store’s signature.
Refunds
Section titled “Refunds”A Pybara payment is refunded from Pybara Wallet, never from WordPress, so no wallet key ever sits on your server.
- On the order page, the Pybara Details box has Refund in Pybara Wallet. It opens that payment’s refund in Pybara Wallet: sign in with your payout wallet.
- Enter the amount, in the order’s currency. Pybara quotes it in the payment’s token, and the refund goes back to the account that paid: no address to type, none to get wrong.
- Back on the order page, reload: the refund is recorded on the order as a WooCommerce refund, for its value in the order’s currency.
Overview
Section titled “Overview”Buyer's wallet ──► Settle canister ──► Your wallet │ ▼ Pybara's logs ◄── Your store's server checks the orderGuarantees
Section titled “Guarantees”- Paid to the wallet your DNS lists: the checkout refuses any other.
- Bound deposits: a deposit is tied to your account and to one order, so it can be neither redirected nor settled twice.
- An immutable split: the settle canister is blackholed, so no one, not even Pybara, can change its code, and it applies the same 1% fee to every split.
- Your price, signed: the amount is your server’s, signed, so no one in the browser can lower it.
- Verified before fulfilment: an order is marked as paid from Pybara’s on-chain records and its verdict against the quote, not from the page.
- Refunds to the payer: a refund can only go back to the account the ledger shows paid.