Zachri Studio Buyblock docs
Security
  1. Overview
  2. Install
  3. Set up PayPal
  4. Settings
  5. Security
  6. Privacy
  7. Changelog
  8. Support and licence

Security

Buyblock is a trusted plugin. It runs with the same access as your site’s own code.

EmDash capability declarations limit which EmDash APIs a plugin is given. For a trusted plugin they are not an isolation boundary: its code can reach anything your server can. Install it only if you trust us with that.

Capabilities

CapabilityUsed for
network:requestCalling PayPal’s REST API to check keys, create orders and capture payments.
content:readFinding published pages that contain a product’s button, shown on the Products tab.
schema:readListing your collections, to know where to look for those pages.

Hosts

The server talks only to api-m.sandbox.paypal.com and api-m.paypal.com. Buyers’ browsers load PayPal’s JavaScript SDK from www.sandbox.paypal.com or www.paypal.com.

Routes

  • Public: button, create-order and capture-order, used by the button. They never return your secret. The price is read from your store, and the captured amount and currency are checked. create-order and capture-order are rate-limited per visitor and site-wide; visitor IP addresses are hashed, never stored. A payment is never captured twice, even if the buyer’s browser retries.
  • Admin: editors can read; only admins can change keys, products and settings.

Reporting a problem

Email security@zachristudio.com. We reply within 2 business days. Please don’t post security issues in public.