Test
How it Works
The main use for this gateway is to easily test Payment Router configurations and other processing rules without sending transactions to an actual gateway. When using the Test gateway, all orders will automatically be flagged as tests. Vrio automatically installs a test merchant using the test gateway.
Note that all credit cards that are passed through the test gateway will be successful unless using the Vrio default decline cards listed here.
Testing Multi-Step Flows
One of the benefits of using the test gateway is an easier way to test multi-step flows such as Paypal, Afterpay, Sezzle, or if 3DS is required for supported gateways. The test gateway allows you to skip the 2nd step of processing mutli-step transactions where the customer is required to enter more information to verify the transaction. Instead only needing step 1 and 3 to get a successful transaction.
Mutli-Step Testing Processing
Step 1: Create the order using POST /orders being sure to include the redirect_url`. This is the URL that the customer will be redirected to after completing the payment flow for any of the multi-step gateways. You will receive a 101 response_code which means that more steps are required to complete the order.
Step 2: When using the Test gateway, this step is not required and you can continue to step 3. When using a live merchant account, this step will be required for you to redirect the customer to the post_data
from the create order response to have the customer validate more details before you are able to complete the order. Once they complete, they will be redirected back to your redirect_url
so you can move on to step 3.
Step 3: Complete the order using the POST /order/{id}/complete the difference being what value to use for the transaction_token
Available Test payment methods and what to send as transaction_token
transaction_token
Depending on the payment_method_id you want to test, there are different values that are returned from Step 1 that you will need to use.
- Afterpay (payment_method_id = 11 ) -
gateway_response_gateway_id
- Paypal (payment_method_id = 6) -
gateway_response_gateway_id
- Sezzle (payment_method_id = 14 ) -
order_id
Updated 21 days ago