This page describes how to use the test environment for COPYandPAY integrations.
- Go to the documentation at Gateway iframe widget integration documentation.
- In 1. Prepare the checkout click on the Playground tab.
- After
Bearer
enter your own API Auth key. - For the
entityId
enter your own channel ID. - You can use the other parameters from the Gateway playground data in the documentation for each COPYandPAY request.
- Click Try it Out.
- After
- From the JSON response, save the values of your checkout
id
to use later. Theid
will be something likeAF51D29931A8EDF685AAF3A5474083D5.uat01-vm-tx02
. - You can also copy the request to create the checkout from the tab in one of the programming languages.
- Go to 2. Create the payment form, which will automatically load your checkout ID and integrity.
- Click Try it Out.
- You can test styling on the. html, css, and js tabs.
- Enter your test card details. Click the Enter key on your keyboard.
- Go to 3. Get the payment status and click on the Playground tab
- Enter the checkout
id
. - After
Bearer
enter your own API Auth key. - For the
entityId
enter your own channel ID. - Click Try it Out.
- Enter the checkout
- From the response, get the
id
of the payment, theregistrationId
of a saved card, and other attributes as required.
After you create a checkout and collect a payment, you can use the other payment request endpoints:
- For refunds, captures, and reversals: Gateway Backoffice API documentation
- For credits and recurring payments: Gateway Card on File API documentation
- For querying payment results: Gateway Transaction Reports API documentation
The following request examples are in the format to use in the gateway playground for a COPYandPAY integration.
This integration uses the iframe checkout of the payment gateway for SAQ-A PCI compliance.
You can find the gateway playground at Gateway documentation for COPYandPAY integration.
Single payment checkout
For gateway playground data for a checkout for a one-off payment, see Single payment checkout.
Checkout for one-click checkouts
For gateway playground data for an initial payment to save a card for repeated payments with a one-click checkout, see One-click checkout.
Checkout for instalment payments
For gateway playground data for creating a checkout and receiving initial and repeated payments for instalments, see Instalment checkout.
Checkout for subscription payments
For gateway playground data for creating a checkout and receiving initial and repeated payments for subscriptions, see Subscription checkout.
Checkout for a metered initial payment
For gateway playground data for creating a checkout and receiving initial and repeated payments for metered billing, see Metered checkout.
Credit with registered card
For gateway playground data for creating a checkout and receiving initial and repeated payments for metered billing, see Credit payment.