🥧 Pi Payment Tester

Test Pi Network payments against any backend API

How To Use

  1. Open this page in the Pi Browser app — Pi SDK only works there.
  2. Enter your backend Base URL and Access Token under Connection.
  3. Configure each Endpoint — set the route, method, and map which runtime variables (Pi Payment ID, Reference, TX ID) to send and how (body field, query param, or URL path).
  4. Optionally add extra static fields in the Extra Body textarea for each endpoint.
  5. Set the Response Mapping so the tester knows where to find the payment reference and status in your API responses.
  6. Save your config for quick reuse across sessions.
  7. Initialize Pi SDK (Testnet for testing) and Authenticate.
  8. Write your init payload JSON, set the Pi amount, and hit Pay with Pi.
DEV ONLY Test API Key
srcnglkfqpdviyqrcws3cynesendts2re44lgzk5dhocnezqgsgn2enbou9csd5s

Add as PI_API_KEY env variable in your backend. Not for production use.

Use Manual Controls to call individual steps if you already have values from Postman, curl, etc.

Saved Configurations

Connection

POST Initialize Payment
Sent as-is to your init endpoint. Structure it exactly as your backend expects.
Dot-path to extract the payment reference from the response, e.g. data.reference
POST Approve Payment
POST Complete Payment
POST Verify Payment
POST Cancel Payment
Get Payment Status

Pi SDK

Payment

Amount charged via Pi SDK
Shown in the Pi payment dialog

Manual Controls

Event Log