> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cybersource

> Connect to Cybersource to accept card payments and local payment methods.

**Cybersource**

Cybersource is a Visa solution that provides global card processing, risk
management, and payment acceptance tools for enterprises and online businesses.
The platform supports comprehensive payment processing with advanced features
for merchants worldwide.

## Supported payment methods

**Integration** shows how the buyer pays:

* **Direct**: you send card or bank account details through Gr4vy, using Embed, Secure Fields, or the API. Gr4vy stores bank accounts. See [Bank payments](https://docs.gr4vy.com/guides/features/pay-by-bank/overview.md).
* **Redirect**: the buyer completes the payment on the provider's page, and the provider keeps their details.
* **Redirect or SDK**: as redirect, or you can use the provider's own SDK or components in place of the redirect. See the method's page.

| Method | Integration | Countries | Currencies | Notes |
| - | - | - | - | - |
| [Card](https://docs.gr4vy.com/connections/payments/cybersource-card.md) | Direct | `AD`, `AE`, 248 more | `AED`, `AFN`, 129 more | Card processing via Cybersource. |
| [iDEAL \| Wero](https://docs.gr4vy.com/connections/payments/cybersource-ideal.md) | Redirect | `NL` | `EUR` | Bank redirect in the Netherlands. |
| [KCP](https://docs.gr4vy.com/connections/payments/cybersource-kcp.md) | Redirect | `KR` | `KRW` | Bank redirect in South Korea. |

## Setup

To sign-up for a Cybersource account, request a
[sandbox account](https://developer.cybersource.com/hello-world/sandbox.html),
this can take 1-2 days.

## Credentials

Cybersource supports two authentication methods. The existing method uses
HTTP Signature with a shared secret key. Cybersource is retiring this in
favour of JWT authentication with Message Level Encryption (MLE), which
encrypts request and response payloads at the app layer to protect
sensitive data.

> [!WARNING]
>
> All Cybersource REST-based merchants must migrate to JWT with MLE by
> **March 1, 2027**. After that date, Cybersource rejects requests signed with
> HTTP Signature. Cybersource enforces this per endpoint, so card, iDEAL, and KCP
> payments can each start failing separately. To enable MLE in Gr4vy, you must obtain all four new
> credentials from Cybersource and configure them on your connection. Until then,
> connections configured with HTTP Signature credentials continue to work as
> before.

All configurations require your **Merchant ID**, which is the
Cybersource-assigned ID for your account, found in the Cybersource Business
Center.

![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_merchant_id.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=400313348652d7250a713ac8ce65be23)

Cybersource Merchant ID

The remaining credentials depend on which authentication method you are using.

### HTTP signature (soon to be deprecated)

**Merchant Key ID** and **Merchant Secret Key:** create a REST API Shared
Secret Key. This is also documented on the
[Cybersource Knowledge Base](https://support.cybersource.com/knowledgebase/Knowledgearticle/?code=000002926).

1. Sign in to the Cybersource Business Center (Test or Production) where the key is used
2. Select Payment Configuration > Key Management

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_key_management.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=ad544d0a814aa377a075748d012a6488)

   Cybersource Key Management Menu
3. Select Generate Key at the top right

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_generate_key.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=155725baa187c138d3b82110f979d8eb)

   Cybersource Generate Key
4. From the list, make sure to check the radio button for REST APIs - REST - Shared Secret Key

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_create_key.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=021d93fa97976893671c10bb36c20ca5)

   Cybersource Create Key
5. Click Generate Key at the bottom

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_complete_generate_key.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=1c9b4e78dcba06d4bfcbbc04bb2af18b)

   Cybersource Complete Generate Key
6. Click Download Key or copy the keys using the copy function next to Key and Shared Secret

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_download_key.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=9aa9ea371e0dc379dd137a251c11db9c)

   Cybersource Key ID

After creating a Shared Secret Key, obtain the `Key ID`:

1. Go to Payment Configuration > Key Management

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_key_management.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=ad544d0a814aa377a075748d012a6488)

   Cybersource Key Management Menu
2. Find the key from the list

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_find_key.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=95161c2c8e30a9367888c6b1d653d936)

   Cybersource Generate Key
3. The `Key ID` is listed below the `Key Detail` title

   ![](https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_key_id.png?fit=max\&auto=format\&n=81rUFzs1xxqEKdRI\&q=85\&s=3dd628e8e4748807779a248577673f1d)

   Cybersource Merchant ID

### JWT and message level encryption

When all four fields below are configured, Gr4vy automatically uses the
JWT + MLE path.

**P12 Certificate:** the certificate file used to sign JWT authentication
headers and to encrypt the request payload sent to Cybersource. Generated in
Cybersource Business Center under Key Management as a **REST–Certificate**.

To generate a P12 certificate for the
[sandbox](https://businesscentertest.cybersource.com) or
[production](https://businesscenter.cybersource.com) environment:

1. Sign in to Cybersource Business Center
2. On the left navigation panel, go to Payment Configuration > Key Management

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-key-managment-2.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=470a03690f7a5182cbd352036d55a392)

   Key Management menu
3. Click **+ Generate key**

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-generate-key-button.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=b06d4fbfe0c3edaa78fd68254415fbb8)

   Generate key button
4. On the Create Key panel, select **REST–Certificate**, scroll down and click Generate key

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-create-key-cert.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=50260681827c3fab760c475655d4fb7d)

   Create Key panel with REST–Certificate selected
5. Click **Download key**

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-download-cert-key.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=9ae49ea9941a798d6505f5c8dbd71f17)

   Download key
6. Set a password on the prompt and note it down—this is your P12 certificate password

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-set-password.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=214c152062fc632d52186b69db1b23ee)

   Set certificate password
7. The `.p12` file downloads automatically—upload it to the Gr4vy dashboard as your P12 certificate

**P12 Certificate Password:** the password set when the P12 certificate was
generated in the preceding steps.

Refer to the [Cybersource documentation](https://developer.cybersource.com/docs/cybs/en-us/platform/developer/all/rest/rest-getting-started/restgs-jwt-message-intro/restgs-security-p12-intro.html)
for further guidance on creating a certificate, uploading an existing one and testing your certificates.

**MLE Response P12:** the P12 file Gr4vy uses to decrypt Cybersource's
encrypted API responses. Cybersource generates the key pair—keeping the
public key to encrypt responses—and you download the P12 containing the
private key.

To generate a response MLE key:

1. In Cybersource Business Center, go to Payment Configuration > Key Management

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-key-managment-2.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=470a03690f7a5182cbd352036d55a392)

   Key Management menu
2. Click **+ Generate key** and select **REST–API Response MLE**

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-create-key-mle.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=e85569651081114a0c374cf30f95c57c)

   Create Key panel with REST–API Response MLE selected
3. Click **Download key**

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-download-mle-key.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=60332acbddaa3ecad0f653c098a16ec4)

   Download key
4. Set a password on the prompt and note it down—this is your MLE Response P12 password

   ![](https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-set-password.png?fit=max\&auto=format\&n=ttm4CtpHiGtifRMj\&q=85\&s=214c152062fc632d52186b69db1b23ee)

   Set MLE password
5. Upload the downloaded `.p12` file here

Refer to the [Cybersource documentation](https://developer.cybersource.com/docs/cybs/en-us/security-keys/user/all/ada/security-keys/restgs-security-mle-reply.html)
for further guidance.

**MLE Response P12 Password:** the password set when the MLE Response P12
was generated in the preceding steps.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.