Sandbox vs production
Sandbox and production are completely separate environments with separate API keys, accounts, wallets, and data. Sandbox API base URL — https://api-sandbox.pik.global/v1 Production API base URL — https://api.pik.global/v1 To switch environments, change your API key and base URL. No other code changes are required.Getting sandbox credentials
Log in to PIK Dashboard and navigate to Settings > API Keys > Sandbox. Generate a sandbox API key. You also get a pre-funded sandbox wallet.Simulating payments
Call POST /api/v1/sandbox/payments/payment_id/simulate with status set to:- settled — Simulates successful payment and fires the payment.settled webhook.
- expired — Simulates an expired payment.
- underpaid — Simulates underpayment. Include amount_received set below the payment amount.
