- Migrate from v2
- Migrate from v1
To migrate from v2 of the package to v3, follow the steps below.
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:
-
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.
2. Update your webhook configuration
In v3:- It is mandatory to verify HMAC signatures.
-
The following webhooks are enabled:
- REFUND_FAILED
- CAPTURE_FAILED
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:
Webhook endpoint URL format
For example: Example Webhook endpoint URL
- 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.
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.
- 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.