Test Flow
Simplifying Your Integration
At Portal Pay, we understand that testing is crucial for a smooth integration. That's why we've created a robust test environment that makes your life easier. Let's dive into how you can leverage our test flow to ensure your integration is working perfectly before going live.
Your Sandbox: The Test Environment
Portal Pay's test environment is your playground. It allows you to process payments without any actual blockchain interaction. This means you can:
- Simulate various payment scenarios
- Force payments into specific states
- Test your integration thoroughly without incurring any real costs
This environment is perfect for integration testing, allowing you to focus on your implementation without worrying about blockchain complexities.
Getting Started with Test Mode
Good news! If you're using a test organization, test mode is automatically ON. To make the most of it:
- Use your test credentials for all operations.
- Ensure your blockchain account configuration remains separate from your production setup.
Pro Tip:
While our test environment doesn't interact with real blockchains, remember that live payments on the blockchain will still incur costs. We recommend sticking to the test flow during your integration process to avoid unnecessary expenses.
Your Testing Toolkit: Test Codes
To simulate different payment outcomes, use these handy test codes:
Code | Payment Status |
---|---|
0x101 | Success |
0x199 | Failure |
Cancel |
If you're not using our hosted payment page, you can use these codes in the Create a TransactionRequest call. Just pop the code into the sending_address
field to force the payment into the specified status.
Seamless Testing with Our Hosted Payment Page
Using Portal Pay's hosted payment page? Great choice! Here's what you need to know:
- Test flow is automatically enabled for all test payments.
- You have the flexibility to disable this feature directly on the page if needed.
Our hosted payment page not only provides a secure and user-friendly checkout experience but also streamlines your testing process. It's designed to work seamlessly with our test environment, allowing you to simulate various payment scenarios with ease.
Updated 3 months ago