Testing Payments on Live Sites using test cards -without stopping customers paying
When on staging sites, it's easy to test payments by using the Payment gateway's test mode toggle, but what about on live sites? Stop using developer discount codes and set up a test mode.
{% include "ecommerce/basic_payment",
amount: '500'
%}{%- include 'ecommerce/checkout_standard'-%}{% include "ecommerce/basic_payment",
amount: '500',
id: '1',
default: 'true'
%}{%- include 'ecommerce/checkout_standard', id: '1', default: 'true' -%}{% assign payment_gateway = context.params.test | default: "1" %}
{%- include 'ecommerce/checkout_standard', id: payment_gateway , default: 'true' -%}{% assign payment_gateway = context.params.test | default: "1" %}
{% include "ecommerce/basic_payment",
amount: '500',
id: payment_gateway ,
default: 'true'
%}Last updated
Was this helpful?

