Requirements
| Requirement | Description |
|---|---|
| Integration type | Make sure that you have integrated with the following: Adyen Salesforce Commerce Cloud cartridge for SFRA or SiteGenesis. Adyen Salesforce OMS package. |
| API credential roles | Make sure that you have the following role: Web Service user with the API PCI Payments role |
| Customer Area roles | If you want to offer Pay by Link, make sure that you have one of the following roles: Merchant admin Pay by Link Settings |
| Webhooks | Subscribe to the following webhook: Standard webhooks |
| Limitations | OOBO with Pay by Link is only available on v3.2.0 and later versions of our OMS package, and supports limited payment methods. |
| Setup steps | Before you begin: Make sure that you have a fully functional Salesforce OMS Org that is connected to your Salesforce Commerce Cloud (SFCC) storefront. Integrate with our OMS package |
Supported payment methods
The OOBO feature supports:- Credit cards: take OOBO orders with credit cards supported by the SFCC cartridge and do not require additional verification.
- Pay by Link: accept payments using payment links for iDeal, Apple Pay, PayPal, and cards supported by the SFCC cartridge.
How it works
Learn more about how to place orders on behalf of your shoppers in the Salesforce documentation. In the OOBO flow, you place orders on behalf of your shoppers by entering their card details or sending them a payment link.- OOBO with cards
- OOBO with Pay by Link
Read about the payment flow for OOBO with cards in Salesforce documentation.
Set up OOBO for cards
- Follow the Salesforce documentation to configure OOBO .
- Follow the Salesforce documentation to install and set up the Salesforce External Payments Package .
- Provision cart and checkout data connection type.
- Associate a payment gateway to your B2C Commerce WebStore.
The payment flow for OOBO with Pay by Link is similar to the OOBO flow explained in the Salesforce documentation. There are additional elements in our Pay by Link OOBO flow that enables the generation of a payment link.
- To place an order on behalf of your shopper, your store employee creates an account for the shopper in Salesforce. The account must have a contact record including the email field, and the currency of your store must match the account’s currency.
- From the account page for the account you created, under Actions & Recommendations, the store employee initiates the Adyen OOBO flow, and selects the store, and the product the shopper wants to purchase.
- The store employee enters the billing and shipping address for the shopper, and selects a delivery option. The country and state codes should be in the two letter ISO-3166-2 format.
-
The store employee previews the order details, the order details include:
- The shopper’s email, fetched from the account created for the shopper.
- The payment link’s duration of validity.
- To create the order, your store employee selects Submit Order, and a payment link is generated. You must build your own logic to share this link with your shoppers.
- Your store employee selects Finish to complete the process.
Set up OOBO for Pay by Link
-
Follow the Salesforce documentation to configure OOBO . You only need to complete the following steps:
- Set up prerequisites for OOBO.
- Configure a delivery method for OOBO.
- Add the OOBO flow to an object page. When you need to select an OOBO flow, select Adyen OOBO.
- Provision cart and checkout data connection type.
- Associate a payment gateway to your B2C Commerce WebStore.
- Assign permissions to your customer service employees to use the OOBO feature.
- Update custom metadata fields to enable Pay by Link.
- Add payment links to the order summary page.
- Add your terms and conditions to the Adyen-hosted payment page.
Provision cart and checkout data connection type
- In your Salesforce OMS Org, go to Setup and search for B2C Commerce Connections.
- Click Edit for the SFCC storefront for which you want to enable OOBO.
- Move Cart and Checkout Data from Inactive Connection Type to Selected Connection Type and select it.
- Click Save. After a few minutes, the connection type status will change to provisioned.
Associate a payment gateway to your B2C Commerce WebStore
- In your Salesforce OMS Org, open the Developer Console.
-
Run the following query to get the WebStore Id for your SFCC storefront:
SELECT Id, ExternalReference, Name, Type, DefaultTaxLocaleType, CurrencyIsoCode, DefaultLanguage, SupportedLanguages, SupportedCurrencies FROM WebStore -
In the response, check the
ExternalReferenceandNamefields to identify the Id that corresponds to your SFCC storefront and save it. -
Make sure that the
CurrencyIsoCode,DefaultLanguage,SupportedLanguages, andSupportedCurrenciesfields are populated. -
Make sure that the
DefaultLanguagefield matches the Default Locale of your SFCC storefront. -
In your Developer Console, run the following query to get the Payment Gateway Id used for your SFCC storefront:
The correct Id has Adyen for
SELECT Id, PaymentGatewayName, PaymentGatewayProviderId, Status FROM PaymentGatewayPaymentGatewayName. You set your Payment Gateway Name when you set up OMS. -
In your Developer Console, create a
StoreIntegratedServiceentity with the WebStore and Payment Gateway Ids you obtained:StoreIntegratedService sis = new StoreIntegratedService( StoreId = 'YOUR_WEBSTORE_ID', Integration = 'YOUR_PAYMENT_GATEWAY_ID', ServiceProviderType = 'Payment' ); insert sis;
Assign permissions
This step is only required if you want to support Pay by Link payments with OOBO.To let your customer service employees use the OOBO feature, assign the External Credential you created to them.Update custom metadata fields to enable Pay by Link
This step is only required if you want to support Pay by Link payments with OOBO.- In your Salesforce OMS Org, Go to Setup > Custom Code > Custom Metadata Types.
- Scroll down to Adyen Adapter Layout, and select Edit.
- Drag and drop the Payment Link Expiry Duration, Payment Link Return URL, and Payment Link Theme ID fields to the Adyen Adapter Layout.
- Select Save.
- Select Manage Adyen Adapters.
- Next to Adyen Default, select Edit.
-
Fill the following fields:
Field Description Payment Link Expiry Duration The duration after which a payment link expires. The default value is 24 hours. Payment Link Return URL The URL to which your shoppers should be redirected after completing the payment on the Adyen-hosted payment page. Payment Link Theme ID The ID of the Pay by Link theme. When not specified, the default theme set in your Customer Area will be used. - Select Save.
Add payment links
This step is only required if you want to support Pay by Link payments with OOBO.To show the payment links on the order summary pages, configure your order summary page layout.- In your Salesforce OMS Org, Go to Setup > Object Manager.
- Select Order Summary.
- Select Page Layouts, and then select Order Summary Layout.
- In the layout editor, drag the Payments links field to the Related List section.
Add configuration to manage payment links
This step is only required if you want to support Pay by Link payments with OOBO.Add configuration to add buttons to your order summary page that lets you expire and regenerate payment links.- On the Order Summary Layout page, next to the Payment Links related list, select the wrench icon.
- Expand the Buttons section.
- Move the Expire Link and Regenerate Link buttons from Available Buttons to Selected Buttons.
- Selected OK.
- Select Save to save your changes to the page layout.
- Expire: all payment links associated with the order will be expired, and shoppers cannot continue to make payments using the previously generated links.
- Regenerate: all payment links associated with the order will be expired, and a new payment link will be generated.
Troubleshooting
The following are common problems and ways to troubleshoot if you experience issues when executing the OOBO flow.Problems related to the locale
Check if the value for theDefaultLanguage field of your WebStore matches the default locale in your SFCC.