Skip to main content

Salesforce SFRA cartridge

Set up payment methods

Before You Begin

Requirements

After the metadata import, Adyen has been added as the payment processor for credit cards and for the local payment methods that have been set up for your merchant account. To make sure that this has been set up correctly:
  1. In the Salesforce Business Manager, go to Merchant tools > Ordering > Payment Methods.
  2. In the Payment Methods overview, check the ID column to make sure that AdyenComponent and CREDIT_CARD are enabled.
  3. Under Details, set Payment Processor to Adyen_Component for both types.

Arrange payment methods

Payment methods are shown based on a shopper’s order amount, currency and shipping country. The order in which the payment methods are displayed to shoppers can be changed per country in the Customer Area:
  1. Go to Settings > Checkout Settings.
  2. Drag the payment methods in the order that you want to display them.

Add Description

Adjust payment method descriptions

You can adjust the payment method descriptions that are displayed to your shoppers on the checkout page. The payment method descriptions used by the cartridge are in the paymentMethodDescriptions.js file. To change the description for a payment method:
  1. Go to src/cartridges/int_adyen_SFRA/cartridge/adyen/config/adyenConstants/paymentMethodDescriptions.js.
  2. Add the payment description that you want to display to your shoppers.

Apple Pay

Salesforce Commerce Cloud provides the integration with Apple Pay on the Web, where Adyen is used as one of the payment facilitators to accept Apple Pay tokens and process them. There are two ways to set up Apple Pay:
  • Use Adyen’s Apple Pay certificate: This integration is provided by the Adyen cartridge.
  • Use your own Apple Pay certificate: This integration is provided by Salesforce Commerce Cloud, and is limited compared to using Adyen’s Apple Pay certificate. This option only lets you enable Apple Pay for express checkout.
We strongly recommend to use Adyen’s Apple Pay certificate, because this option and requires less configuration steps.
This integration allows shoppers to check out with Apple Pay or Apple Pay express, where the Pay button can be displayed on the product detail, or cart and mini-cart pages.

Step 1: Enable Apple Pay

In your test Customer Area, add Apple Pay.
  • You will be asked for Shop websites: your website URLs, for example https://www.mystore.com. If you add more than one, separate them with a comma.
  • You cannot use http://localhost to test.
You do not need to add Apple Pay certificates in the Wallet section.Apple Pay is set up in your integration after this step, you do not need to set up any additional configurations in your Salesforce Business Manager.

Step 2 (optional): Set up Apple Pay Express in Salesforce Commerce Cloud

You can offer your shoppers the option to use express checkout on the product detail, cart, and mini-cart pages.To enable Apple Pay Express:
  1. In your Salesforce Business Manager, go to Merchant Tools > Site Preferences > Adyen Settings > Express Checkout.
  2. Under Apple Pay Express, select the toggle to enable express checkout on the product detail, cart, mini-cart, and shipping pages.
  3. Select Save Changes.

Step 3: Test Apple Pay

Use Apple’s test card numbers to test your integration. Refer to Apple Documentation for a full list of test cards and instructions on how to add those to your test device.
You can check the status of an Apple Pay test payment in Customer Area > Transactions > Payments.

Step 4: Go live with Apple Pay

To enable Apple Pay in the Live environment, set up the domain association file in the Salesforce Business Manager:
  1. Go to Merchant Tools > Site Preferences > Adyen Settings > Local payment method settings.
  2. Set the input field for the Apple Pay domain association file:
  3. Go to Merchant Tools > SEO > Aliases.
  4. Define the following alias so that the domain association file is externally accessible in the path specified by Apple: Define the alias
    The "locale" must be one that is enabled in your sandbox.