Skip to content

Setup

A site is set up in Pybara Wallet, not in code: until it is, a Pybara button stays hidden and open() refuses. These are the site owner’s steps; whoever adds Pybara to the site relays them, once.

Open Sites in Pybara Wallet
  1. Create a Pybara Wallet at pybara.io, then open Manage › Sites › Add a site without a plugin and enter this site’s address.
  2. Publish the DNS TXT record the wallet shows (_pybara-payto, holding the wallet’s principal) with the domain’s DNS provider, until the wallet shows Verified.
  3. Accept the Pybara Terms of Service for the site there, and copy the wallet’s principal into recipientPrincipal.

Until then the Pybara button stays hidden. It works on the site’s registered domain, not on a preview URL.

The terms are the Pybara Services Terms of Use, the same for every site, however it integrates Pybara. Pybara records the version and the date you accepted them. The Sites page details the DNS record and the terms.

With the site verified and its terms accepted, Pybara.checkout({ siteUrl, siteName, recipientPrincipal, currency }) binds it once, then either:

Every field is in Options.

Pybara.checkout({ …, staging: true }) points every call at the staging canisters and staging.pybara.io, so you can exercise the whole flow against a site registered there. Never ship staging: true to a live site.