When connecting to a payment gateway, it is always recommended to test the gateway using a sandbox or developer account to ensure that transactions are working correctly, without having to use actual money. This document will walk you through testing with a 2Checkout Sandbox account.
Setting up your 2Checkout sandbox account
In order to properly test 2Checkout using Give’s Test Mode you first need to sign up for a 2Checkout sandbox account at https://sandbox.2checkout.com/. This is an environment designed to mimic a live 2checkout environment, without having to use real money/credit cards.
Once you sign up for an account and log in, navigate to the “API” tab at the top right of the page.
If it’s the first time, you will need to accept the terms and conditions of using their API, at which point you will be directed to this page:
From there, you will copy those keys, and (in a separate browser tab/window) paste them into the Give Payment Gateway settings at Donations > Settings > Payment Gateways (tab) > 2Checkout (section)
The only remaining step is to get the 2Checkout account number. Back in the 2Checkout sandbox area, click the “mystery user” icon in the top right, and copy the account number, pasting it into the remaining field in the Give settings.
Once that is set up, you are ready to make test donations. Ensure Give is in Test Mode, and using the 2Checkout test data, you can process donations without using real money, but still ensuring that the gateway is properly connected.