This page explains the steps to upgrade your Adyen Salesforce Order Management System (OMS) package from v2 to v3. See our release notes to learn what has changed in this version.
If you are using v1 of our package, follow the steps to install and set up the package from scratch. You cannot update from v1 to v3 following the steps in this guide.
Step 1: Update your Payment Gateway configuration
The package now includes a Payment Gateway Provider Record, and you no longer need to create your own. To use the new record with your integration:
-
In your Salesforce OMS Org, go to App Launcher, enter Payment Gateways in the search field, and select it.
-
On the Payment Gateways page, select Adyen.
-
Update the following fields in the Payment Gateway record:
Field Value Payment Gateway Provider Select Adyen OMS Provider. Merchant Credential Select AdyenCheckout. If you cannot select AdyenCheckout, go to Setup > Named Credentials, and select Adyen Checkout. Then, go back to the Adyen Payment Gateway record, select Refresh, and try again. -
Select the Adyen OMS Provider hyperlink.
This opens the Payment Gateway Provider page. -
In the Site URL, find the ID, starting with 0cJ.
-
Save this ID in your system, you will need it when you update your webhook configuration.
Step 2: Update your webhook configuration
In v3:
- It is mandatory to verify HMAC signatures.
- The following webhooks are enabled:
- REFUND_FAILED
- CAPTURE_FAILED
To make sure your integration can handle the changes introduced in this version:
After you have completed the steps, test your webhook configuration to make sure the new webhook configuration works correctly.
Update your webhook configuration in the Adyen Customer Area
Update your existing webhook configuration to add your new webhook endpoint URL and enable new events:
-
In your Customer Area, go to Developers > Webhooks.
-
Select the webhook that you have configured for the package.
-
Select the pencil icon to edit this webhook.
-
Under Server Configuration, update the URL with your Payment Gateway ID that you saved when you updated your Payment Gateway configuration. Use the following format:
For example:
-
Under Security, generate a HMAC Key, copy it, and store it securely in your system.
-
Under Events, select CAPTURE_FAILED, and REFUND_FAILED.
-
Select Save configuration.
Add your HMAC key in Salesforce
- In your Salesforce B2B Org, go to Setup > Custom Code > Custom Metadata Types.
- Select Adyen Adapter.
- Add your HMAC key to the Adyen Adapter Layout:
- Scroll down to Adyen Adapter Layout, and select Edit.
- Drag the HMAC Key field, and drop it into the layout.
- Select Save.
- Select Manage Adyen Adapter.
- Next to Adyen Default, select Edit.
- Set the HMAC Key field to the HMAC key you generated in the Adyen Customer Area.
- Select Save.
Step 3: Verify your sales channel setup
In v3, we changed how the Adyen merchant account field is populated for Salesforce sales channels. Choose one of the following options:
- Use the merchant account that you configured in the Adyen Default custom metadata record.
For this option, leave the merchant account field empty in the sales channel object:- In your OMS Org, go to the App Launcher, and search for Sales Channels.
- Select a sales channel.
- Leave the Adyen Merchant Account field empty.
- Link a specific merchant account to one of your sales channels.
For this option, follow the steps to configure sales channels.
We recommend to update the help text that appears for the merchant account field in the Sales Channel object:
-
In your Salesforce OMS Org, go to Setup > Object Manager.
-
Select Sales Channel.
-
Select Fields & Relationships, and then select Adyen Merchant Account.
-
Select Edit to replace the help text that appears for this field. For example:
-
Select Save.
Step 4: Update your Named Credential setup
The package includes the Named Credential by default, and uses API keys for authentication instead of basic authentication.
To enable the new Named Credential in your integration, follow the steps to set up a Principal Credential.
Go live
After you have completed your upgrade, follow the steps to go live with this version.