> ## 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 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

| Method                       | Countries           | Currencies            | Notes                             |
| ---------------------------- | ------------------- | --------------------- | --------------------------------- |
| [Card](./cybersource-card)   | `AT`, `AU`, 38 more | `AED`, `AFN`, 95 more | Card processing via Cybersource.  |
| [iDEAL](./cybersource-ideal) | `NL`                | `EUR`                 | Bank redirect in the Netherlands. |
| [KCP](./cybersource-kcp)     | `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
  **September 30, 2026**. 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.
</Warning>

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

<Frame caption="Cybersource Merchant ID">
  <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_merchant_id.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=400313348652d7250a713ac8ce65be23" alt="" width="726" height="197" data-path="connections/assets/cybs_merchant_id.png" />
</Frame>

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
   <Frame caption="Cybersource Key Management Menu">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_key_management.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=ad544d0a814aa377a075748d012a6488" alt="" width="287" height="722" data-path="connections/assets/cybs_key_management.png" />
   </Frame>
3. Select Generate Key at the top right
   <Frame caption="Cybersource Generate Key">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_generate_key.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=155725baa187c138d3b82110f979d8eb" alt="" width="1591" height="368" data-path="connections/assets/cybs_generate_key.png" />
   </Frame>
4. From the list, make sure to check the radio button for REST APIs - REST - Shared Secret Key
   <Frame caption="Cybersource Create Key">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_create_key.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=021d93fa97976893671c10bb36c20ca5" alt="" width="1046" height="816" data-path="connections/assets/cybs_create_key.png" />
   </Frame>
5. Click Generate Key at the bottom
   <Frame caption="Cybersource Complete Generate Key">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_complete_generate_key.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=1c9b4e78dcba06d4bfcbbc04bb2af18b" alt="" width="968" height="741" data-path="connections/assets/cybs_complete_generate_key.png" />
   </Frame>
6. Click on Download Key or copy the keys using the copy function next to Key and Shared Secret
   <Frame caption="Cybersource Key ID">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_download_key.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=9aa9ea371e0dc379dd137a251c11db9c" alt="" width="974" height="703" data-path="connections/assets/cybs_download_key.png" />
   </Frame>

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

1. Go to Payment Configuration > Key Management
   <Frame caption="Cybersource Key Management Menu">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_key_management.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=ad544d0a814aa377a075748d012a6488" alt="" width="287" height="722" data-path="connections/assets/cybs_key_management.png" />
   </Frame>
2. Find the key from the list
   <Frame caption="Cybersource Generate Key">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_find_key.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=95161c2c8e30a9367888c6b1d653d936" alt="" width="1564" height="637" data-path="connections/assets/cybs_find_key.png" />
   </Frame>
3. The `Key ID` is listed below the `Key Detail` title
   <Frame caption="Cybersource Merchant ID">
     <img src="https://mintcdn.com/gr4vy/81rUFzs1xxqEKdRI/connections/assets/cybs_key_id.png?fit=max&auto=format&n=81rUFzs1xxqEKdRI&q=85&s=3dd628e8e4748807779a248577673f1d" alt="" width="1112" height="681" data-path="connections/assets/cybs_key_id.png" />
   </Frame>

### 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
   <Frame caption="Key Management menu">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-key-managment-2.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=470a03690f7a5182cbd352036d55a392" alt="" width="546" height="1096" data-path="connections/assets/cybs-key-managment-2.png" />
   </Frame>
3. Click **+ Generate key**
   <Frame caption="Generate key button">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-generate-key-button.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=b06d4fbfe0c3edaa78fd68254415fbb8" alt="" width="2125" height="117" data-path="connections/assets/cybs-generate-key-button.png" />
   </Frame>
4. On the Create Key panel, select **REST–Certificate**, scroll down and click Generate key
   <Frame caption="Create Key panel with REST–Certificate selected">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-create-key-cert.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=50260681827c3fab760c475655d4fb7d" alt="" width="1910" height="1612" data-path="connections/assets/cybs-create-key-cert.png" />
   </Frame>
5. Click **Download key**
   <Frame caption="Download key">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-download-cert-key.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=9ae49ea9941a798d6505f5c8dbd71f17" alt="" width="1728" height="1404" data-path="connections/assets/cybs-download-cert-key.png" />
   </Frame>
6. Set a password on the prompt and note it down—this is your P12 certificate password
   <Frame caption="Set certificate password">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-set-password.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=214c152062fc632d52186b69db1b23ee" alt="" width="814" height="1360" data-path="connections/assets/cybs-set-password.png" />
   </Frame>
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
   <Frame caption="Key Management menu">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-key-managment-2.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=470a03690f7a5182cbd352036d55a392" alt="" width="546" height="1096" data-path="connections/assets/cybs-key-managment-2.png" />
   </Frame>
2. Click **+ Generate key** and select **REST–API Response MLE**
   <Frame caption="Create Key panel with REST–API Response MLE selected">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-create-key-mle.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=e85569651081114a0c374cf30f95c57c" alt="" width="1910" height="1612" data-path="connections/assets/cybs-create-key-mle.png" />
   </Frame>
3. Click **Download key**
   <Frame caption="Download key">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-download-mle-key.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=60332acbddaa3ecad0f653c098a16ec4" alt="" width="1730" height="1446" data-path="connections/assets/cybs-download-mle-key.png" />
   </Frame>
4. Set a password on the prompt and note it down—this is your MLE Response P12 password
   <Frame caption="Set MLE password">
     <img src="https://mintcdn.com/gr4vy/ttm4CtpHiGtifRMj/connections/assets/cybs-set-password.png?fit=max&auto=format&n=ttm4CtpHiGtifRMj&q=85&s=214c152062fc632d52186b69db1b23ee" alt="" width="814" height="1360" data-path="connections/assets/cybs-set-password.png" />
   </Frame>
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.
