Are you looking for test card numbers?

Would you like to contact support?

Plugin icon

Set up the B2B Commerce Org

Set up the Ayden Payments App in the B2B Commerce Org.

You can connect the B2B Commerce Org to the Adyen API by using the API key that you generated when you set up the Customer Area.

Step 1: Set up custom metadata

  1. In the B2B Commerce Org, select the Settings icon and select Setup.
  2. In the Custom Code menu, select Custom Metadata types.
  3. For the Merchant record, select Manage Records > AdyenMerchantsConfiguration.
  4. Select Edit.
  5. Enter the following:
  6. If you are a system integrator, enter your organization’s name in the ApplicationInfo_SI field.
  7. If you are working on production/live org, select the Live checkbox. For sandboxes, leave this checkbox blank.
  8. Select Save.

Step 2: Set up named credentials

  1. In the B2B Commerce Org, select the Settings icon and then select Setup.
  2. In the Settings menu, select Security > Named Credentials.
  3. For each of the five records shown, perform the following steps:
    1. Select Edit.
    2. In the Password field, enter the API key that you generated in the Adyen Customer Area.
    3. Select Save.

Step 3: Set up remote settings

  1. In the B2B Commerce Org, select the Settings icon and then select Setup.
  2. In the Settings menu, select Security > Remote Site Settings.
  3. Select New Remote Site and add the following remote sites:

    Remote site name Remote Site URL Disable Protocol Security Active
    Adyen_Checkout_API_for_test https://checkout-test.adyen.com -x- -white_check_mark-
    Adyen_Checkout_API_for_live https://checkout-live.adyen.com -x- -white_check_mark-
    Adyen_PAL_API_for_test https://pal-test.adyen.com -x- -white_check_mark-
    Adyen_PAL_API_for_live https://pal-live.adyen.com -x- -white_check_mark-

Step 4: Set up viewing transaction payments

  1. In the B2B Commerce Org, select the Settings icon and then select Setup.
  2. In the Platform Tools menu, select Objects and Fields > Object Manager.
  3. Select CC Order.
  4. Select Page Layouts > CC Order Layout.
  5. In the Page Layout Editor, select Related Lists.
  6. Drag the CC Transaction Payment box from the Page Layout Editor into the Related Lists section. You should now see CC Transaction Payments as an entry.
  7. Select the Related List Properties icon for the CC Transaction Payments entry.
  8. From Available Fields, select Account Number, Account Type and Transaction Type and add them to Selected Fields. Select OK.
  9. Select Save in the Page Layout Editor. When a prompt appears asking if you want to overwrite users' related list customizations, select Yes .

Step 5: Configure the B2B Commerce CC Admin

  1. In the B2B Commerce Org, go to the App Launcher, open B2B Commerce
  2. Select the CC Admin tab.
  3. In the menu, select Configuration Settings.
  4. Select the level where you want to configure settings: global level, or storefront level.
  5. Set the fields as follows:

    Module Configuration Page Value
    Adyen Credit Card Config Metadata All Your Adyen merchant account name for which the payments will be processed.
    Adyen Credit Card Immediate Capture All The capture method that you set in your Adyen Customer Area.
    Possible values:
    • FALSE: select this value if you set manual capture.
    • TRUE: select this value if you set immediate automatic capture, or automatic capture with a delay of a fixed number of days.
    Checkout Payment Types All adyencc
    To set multiple values in this field, list them using commas without spaces.
    My Wallet Enabled All TRUE
    My Wallet Payments All adyencc
    Payment White List All adyen_payment__pmt_adyencc_pay,adyen_payment__pmt_adyencc_edit,adyen_payment__pmt_adyencc_new
    To set multiple values in this field, list them using commas without spaces.
    Body Includes End Enabled Check Out TRUE
    Body Includes End Page Include Name Check Out adyen_payment__AdyenCheckoutBIE

Set up integrations

  1. In the B2B Commerce Org, open B2B Commerce from the App Launcher and switch to the CC Admin tab.
  2. From the Global Settings list in the top right, select your storefront.
  3. In the Integrations menu, go to Payments.
  4. In the Payment Hook Settings for DefaultStore section, set the Payment Hook API Class to adyen_bundle.cc_adyencc_hk_Payment.
  5. Select Save.

Set up cache

  1. From the Global Settings list in the top right, select Global Settings.
  2. In the Global settings menu, select Configuration Cache Management.
  3. Select Build New and wait for a new configuration cache to build. You may need to select Refresh List to see the new cache and its building status.
  4. Select Activate for the new configuration cache.
  5. Select Deactivate, and optionally Remove, for any previous configuration caches that you do not use anymore.

Next steps