Testing
Testing your integration thoroughly before going live is crucial for ensuring a smooth payment experience for your customers.
Sandbox environment
BiasPay provides a dedicated sandbox environment that mirrors the production environment but uses test data instead of real payment information. This allows you to:
- Test your integration without processing real payments
- Simulate various payment scenarios and edge cases
- Verify error handling and webhook processing
- Test your user flows end-to-end
Never test with real card numbers or perform test transactions in the live environment. Always use the sandbox environment and test payment methods for development and testing purposes.
API keys
Sandbox API keys are prefixed with sk_test_
. Using a sandbox key will scope the request to the sandbox environment the key was created in.
Testing different scenarios
The sandbox environment behaves as close as possible to the production environment while not affecting the outside world. It is recommended to test all payment flows in the sandbox environment before going live, including:
- Successful payments
- Failed payments
- Checkout sessions and interactive flows
- Event receipt and order fulfillment
- Disputes/chargeback creation
See the test cards guide for a complete list of test card numbers and payment method IDs.
Going live checklist
Before moving to production, ensure you have:
- Tested all payment flows with test cards
- Verified error handling and possible edge cases
- Created automated testing for the above
- Safely stored live API keys