Testing with the sandbox
We provide a sandbox environment to build and test your API integration before going live. This environment generates offers for test customers, allowing you to test various states and user flows.
Use the predefined user details (described below) to trigger specific statuses during checkout in the Sandbox environment.
Testing is not required for the Plugin or Pay Link solution.
Testing procedure
There are two separate procedures that test the Pay Later and Pay Now functionalities. Choose the procedure you want to test from the following tabs.
-
Generate an Order.
Use the API Order endpoint to create an order. See Creating an Order.
-
Fill in and submit the staging credentials (below). Use the exact details below; otherwise, your customer will not be approved.
- Business type panel: Choose Limited Company.
- Your business info panel:
- Company Name: Search for “approved” and select COMPANY NAME.
- Turnover: £700,000
- Your Details panel:
- Name: Mr. Ervin Norton
- Date of Birth: 01/01/1980
- Phone: 07123 123123
- Address: Search for “CB62AG” and choose 286 Idverifier St, CB62AG Ely.
- Confirm you are a major shareholder.
- Accept the Privacy Policy.
-
Press Send text.
No text message will be sent. After a brief pause, the process continues.
-
Click Continue to add payment method
-
Add a debit card.
Use the following card details:
- Card Number: 4000 0566 5566 5556
- Expiry Date: 12/30
- CVV: 123
- Postcode: CB62AG
-
Confirm the payment plan and confirm checkout. Click Confirm plan and complete checkout after reviewing the payment breakdown.
-
Generate an order. Use the API Order endpoint to create an order. See Creating an Order.
-
Choose Pay (amount) with instant bank transfer.
-
Enter test details. Fill in any test full name and email address, then click Finish checkout.
-
Click Mock UK Payments - Redirect Flow.
-
Click Go to bank.
-
Click Open Mock UK Payments - Redirect Flow on this Device
-
Fill in Mock UK Bank details. Enter the details for the Mock UK Bank, then click Continue.
-
Choose an account; then, click Continue.
-
Once complete, you will see a success screen and be redirected back to iwocaPay. The text on this screen depends on the user path you selected in step 7.