Are you looking for test card numbers?

Would you like to contact support?

No momento, esta página não está disponível em português
Plugin icon

Set up the cartridge

Set up the cartridge in the Adyen Customer Area and in the Business Manager.

For older versions of the Adyen Payments Cartridge, see our older documentation. You can also learn more about how to migrate to Adyen Payments Cartridge version 20.1.0.

Before you begin

Before you begin, make sure that you have performed the following steps:

  1. Create a test account with Adyen. With this, you will be able to access the test Customer Area, and apply for a live account. While you wait for your live account credentials, you can start integrating by using your test account.
  2. Finish the metadata import.
  3. In Salesforce Commerce Cloud, enforce HTTPS.

    To be compatible with the Chrome v80 Cookie policy, you need to enforce the use of HTTPS for all sites.

     

Step 1: Set up the cartridge path

  1. Go to Administration > Sites > Manage Sites > [yourSite] > Settings.

  2. In the Cartridges field: 

    • If you are using SFRA, enter:
      bm_adyen:int_adyen_SFRA:int_adyen_overlay:app_storefront_base
    • If you are using a controller-based SiteGenesis, enter:
      int_adyen_controllers:int_adyen_overlay:app_storefront_controllers:app_storefront_core
    • If you are using any form of customizations, make sure to follow our customization guide on best practices around customizations.
  3. Select Apply.

Step 2: Enable the Business Manager configuration page

  1. Go to Administration > Organization > Roles > Administrator.
  2. Under Business Manager Modules, in the Adyen settings row, select the checkbox to enable it.
  3. Select Apply.

Step 3: Generate an API key and client key

In your Adyen Customer Area, generate an API key that connects your Commerce Cloud store to the Adyen API. To authenticate requests from your payment environment, the cartridge also needs a client key.

Generate an API key in your Adyen Customer Area

  1. Log in to your Customer Area.
  2. Go to Developers > API credentials, and select the API credential username for your integration, for example ws@Company.[YourCompanyAccount].
  3. Under Server settings > Authentication select the API key tab.
  4. Select Generate API key.
  5. Select the copy icon and store your API key securely in your system.
  6. Select Save changes.

Generate a client key in your Adyen Customer Area

  1. Log in to your Customer Area.
  2. Go to Developers > API credentials, and select the credential username for your integration, for example ws@Company.[YourCompanyAccount].
  3. Under Client settings > Authentication select the Client key tab.
  4. Select Generate client key.
  5. Select the copy icon and store your client key securely in your system.
  6. Under Add allowed origins, enter your domains and select Add.
  7. Select Save changes.

After generating both keys, add them to your Business Manager when configuring settings.

Step 4: Set up notification webhooks

You get notification webhooks with payment status changes for transactions from your Commerce Cloud store. Set them up in your Adyen Customer area:

  1. Log in to your Customer Area. Switch to your merchant account.
  2. Select Developers > Webhooks.
  3. Select + Webhook.
  4. Under Recommended webhooks > Standard notification select Add.
  5. Select the toggle to make the standard notification Enabled.
  6. Select the edit icon for Server configuration.
  7. Enter:
    • URL: Your webhook server's URL, adding /Adyen-Notify at the end.
    • Method: Select HTTP POST.
    • Encryption Protocol: Select TLSv1.2.
  8. Select Apply.
  9. Under Security > Basic authentication, select the edit icon . Enter your server's username and password. Select Apply.
  10. Select Save changes.

Test notification webhooks

To test your notification webhooks:

  1. Log in to your Customer Area.
  2. Select Developers > Webhooks.
  3. Select the edit icon for the webhook you wish to test.
  4. Select Test configuration.
  5. Select the notifications you want to test.
  6. Select Test to run the test. You can use the icon to see the details of the test notification that was sent.

Configure scheduled jobs

Notifications are stored in Commerce Cloud as custom object instances to be processed by scheduled jobs.

After the metadata import, a scheduled job with ID Process is added to the Business Manager: Administration > Operations > Jobs. This scheduled job has two steps (you can check this in the Job Steps tab): 

  • Process – Processes the notification and updates the payment status of the order.
  • Clean –  Deletes the custom object instance, once it has been processed.

We recommend that you set the frequency of this scheduled job to 1 minute: 

  1. Go to the Schedule and History tab for the Process scheduled job.
  2. Set Trigger to Recurring Interval.
  3. In the Run Time pane, set Amount to 1, and Interval to Minutes

Step 5: Configure Business Manager settings

To configure your Business Manager settings:

  1. Go to Site Preferences > Custom Preferences > Adyen.
  2. Follow the instructions on the page to configure the required settings sections:
    • Account settings: use the credentials you generated in the previous step.
    • Webhook settings
    • Local payment method settings
  3. Configure the optional settings in the other sections of the page.
  4. At the bottom of the page, select Save changes.

Step 6 (optional): Set up in-person payments

To process payments in your Commerce Cloud stores using payment terminals:

1: Enable in-person payments

  1. In the Business Manager, go to Merchant Tools > Ordering > Payment methods.
  2. Select AdyenPOS.
  3. Select Yes in the Enabled column.
  4. From the Payment Processor drop-down in the AdyenPOS Details section, select Adyen_POS.

2: Configure services

  1. In the Business Manager, go to Administration > Operations > Services.
  2. In the Profile column next to AdyenPosPayment, select Adyen.  
  3. In the Name box, enter Adyen.
  4. In the Connection Timeout (ms) box, enter 100.000.
  5. Ensure that the Enable Circuit Breaker checkbox is not selected.

Step 7 (optional): Set up donations with Adyen Giving

If you enable Adyen Giving in your Business Manager settings, you also need to configure it in your Adyen Customer Area:

  1. Go to Developers > Additional data.
  2. In the Card section, select the Variant checkbox.

See also