less than a minute read • Updated 2 days ago
Cybersource
Connect Foxy to Cybersource for secure payments.
- Countries
Japan, United Kingdom, United States
- Features
- 3-D Secure
This integration is no longer available for new stores
Cybersource.com is deprecated and no longer appears in the payment method picker in the Foxy admin. The setup steps below are kept for merchants who are already connected to it.
If you're setting up Cybersource for the first time, use Cybersource REST instead — it's the current, actively supported integration.
Setting up Cybersource
Note that using a test card on a live account generates account configuration errors. We're calling that out because it's unusual — normally the cards would just be rejected with a normal declined-style error message.
Payment tokenization
To be able to charge a customer again, you need to create a customer profile at Cybersource.
You'll get the subscription ID as paySubscriptionCreateReply__subscriptionID in your data feed application. The customer profile is created at Cybersource, so you can access it using the Cybersource Business Center.
Activation
Version 1.1
Version 2.0+
Overriding the merchant reference number
As of Foxy v2.0, the Merchant Reference Number that Foxy passes to Cybersource — normally the Foxy transaction ID — can be overridden. This is advanced functionality and is only relevant for very specific use cases, such as complex fulfillment processes where multiple authorizations and captures need to be grouped by the Merchant Reference Number.
To override the default Foxy transaction ID, add an attribute via the API named fx_transaction_id_gateway_override to the cart resource. The value of that attribute is passed to Cybersource as the Merchant Reference Number, also known as the Merchant Reference Code.
For reference, here's the field in the Cybersource portal:
Testing
Obtaining a test account
Test card numbers
Cybersource test card numbers — the testing guide lists the card numbers to use in the test environment.
Cybersource getting started documentation, which covers simulating error responses using specific order total amounts.
Important notes and caveats
Cybersource limits the number of characters we can send in payment requests, while Foxy's character limits on the checkout are more permissive. When the customer fills out the checkout form, some information may be cut off or special characters removed before being sent to Cybersource. The original data remains in Foxy.
Our view is that it's more important to let the customer check out, with data intact in Foxy, than to reject on an error because the customer put "ext" instead of "x" in their phone field, or included a disallowed character in their company name.
If you'd rather validate the checkout data entry than have values automatically replaced or truncated, you can do so using JavaScript validation.

