less than a minute read • Updated 2 days ago
2Checkout
Connect Foxy to 2Checkout for secure payments.
- Features
- 3-D Secure
- Multi-Currency
- Immediate Payments
- Verifications
Subscriptions are not supported with 2Checkout at this time. If you intend to sell subscriptions with your Foxy store, you'll need to use another payment gateway.
Setting up 2Checkout
Configure notifications and redirects in 2Checkout
Get your credentials
Enter your credentials in Foxy
Additional configuration to support receipt redirect
By default, 2Checkout shows its own thank you screen when a customer completes their payment. It supports a redirect option, which you enabled in the steps above, but Foxy needs the customer redirected to a dynamic URL that can't be set within the 2Checkout admin. That's what the Header redirect option handles.
The catch is that 2Checkout appears to only allow customers to be redirected to a URL matching the primary URL on the 2Checkout account. If these don't match, the customer won't be redirected back to the Foxy receipt and will see the 2Checkout thank you page instead.
Foxy is still notified through the INS notification that the payment completed, so the customer still gets the Foxy email receipt if that's configured to send. If you want the customer redirected to the Foxy receipt, for analytics or other purposes, you'll need to request that the URL on your 2Checkout account be updated to your Foxy store domain, for example https://yourstore.foxycart.com, or your custom subdomain if you use one.
From 2Checkout:
If the Merchant would like to update the URL on their account, they need to contact our Underwriting team or us at supportplus@2checkout.com and we will make sure the account is updated.
Someone with authorized access to the 2Checkout account will need to make the request.
Testing
Obtaining a test account
Sign up for 2Checkout to get an account.
Test card numbers
If your 2Checkout account is configured in demo mode, you can complete test purchases using these details:
First name:
JohnLast name:
DoeCard number:
4111 1111 1111 1111Card expiry: any future date
Card CVV: any 3 digit number
Troubleshooting & interpreting response codes
Contact 2Checkout for info.
Important notes and caveats
Possible action: datafeed handling
We don't necessarily know at the time the customer completes the transaction whether it was completed. We rely on a notification from the gateway afterwards to confirm whether it was approved. Transactions are initially marked as pending, and we update them when the gateway confirms the result.
Each time the status changes, a datafeed is sent to your endpoint if configured, with the transaction details and a status node. The status node contains one of three values: pending, approved or rejected. Depending on what your endpoint does, make sure you check for the appropriate status value first.


