4 min read • Updated 5 months 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 FoxyCart store, you will need to make use of another payment gateway.
Setting Up 2Checkout for FoxyCart
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 admin which is completed through the “Header redirect” option.
The catch though is that it appears that 2Checkout will only allow customers to be redirected to a URL that matches the primary URL on the 2Checkout account. If these don't match, then the customer won't be redirected back to the Foxy receipt, but will instead just see the 2Checkout thank you page.
Foxy will still be notified through the INS notification that the payment completed, so the customer will get the Foxy email receipt if that's configured to send. If you would like the customer to be redirected to the Foxy receipt (for analytics or other purposes), you will need to request that the URL for your 2Checkout account be updated to your Foxy store domain, for example https://yourstore.foxycart.com
(or your custom subdomain if you're using that).
Here is a quote 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.
Note that someone with authorized access to the 2Checkout account will want to make the request.
Testing
Obtaining A Test Account
Signup for 2Checkout here.
Test Card Numbers
If your 2Checkout account is configured in demo mode, you can complete test purchases by using the following details for your order:
First Name:
John
Last Name:
Doe
Card Number:
4111 1111 1111 1111
Card 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
At the time of the customer completing the transaction - we don't necessarily know whether the transaction was completed yet or not. We instead rely on a notification from the gateway after the checkout has been completed to confirm whether the transaction was approved or not. To handle this, transactions are initially marked as pending, and when we get a confirmation from the gateway on the result of the transaction, we update it accordingly. Each time the status changes, a datafeed will be sent to your endpoint if configured with the transaction details and the status
node will be present.
The status
node can contain one of three different values: pending
, approved
or rejected
. Depending on the types of actions you're needing to perform at your datafeed endpoint, you need to make sure the appropriate status value is present first.