Sandbox Mode

Sandbox mode allows you to test your integration prior to making real Pi transactions.

Creating a Payment in Sandbox Mode

// Create payment
const payment = await piecardInstance
    .createPayment(
        amount, 
        memo, 
        metadata, 
        sandbox: true, 
        successURL, 
        cancelURL
    );

To create a sandbox payment, simple set "sandbox" equal to true.

Making a Payment in Sandbox Mode

In the Pi eCard payment UI, you must enter the username "pioneer" (all lower case) and you can use any password. Click 'Login and Pay' to make the payment. No funds will be deducted and your test-earnings will increase. No Pi payment flow will occur.

You can see this transaction under the 'Transaction History' section in the Dashboard and it will be marked with a 'Sandbox' tag.

Last updated