Pi eCard Transaction Gateway
Gateway DashboardPi eCardPricingContact
  • Pi eCard
  • 🚀Quick Start
  • Reference
    • Payments
      • Using the Gateway
      • Get Payment
      • Create Payment
      • Webhooks
      • App-to-User Payments
      • Sandbox Mode
      • Payment Buttons
      • Subscriptions
    • Plugin for WooCommerce
      • Installation
      • Transactions
    • Examples
      • Example 1
Powered by GitBook
On this page
  • Creating a Payment in Sandbox Mode
  • Making a Payment in Sandbox Mode

Was this helpful?

  1. Reference
  2. Payments

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.

PreviousApp-to-User PaymentsNextPayment Buttons

Last updated 2 years ago

Was this helpful?