Upgrading to 3.0.0
Introduction
In this release, we've added automatic CancelAuthorization/Refund request if making order request fails. In order to make it work, we are using the reversal endpoint from the Adyen API.
Requirements
- commercetools integration ^1.10.0.
Updating the configuration
The reversal feature requires additional configuration inside middleware.config.js
.
module.exports = {
integrations: {
// ...
adyen: {
location: '@vsf-enterprise/adyen-commercetools/server',
configuration: {
ctApi: {
// ...
},
adyenMerchantAccount: "VSFAccount243ECOM",
+ adyenCheckoutApiBaseUrl: 'https://checkout-test.adyen.com',
origin: "http://localhost:3000",
buildRedirectUrlAfter3ds1Auth: (paymentAndOrder) => `/checkout/thank-you?order=${paymentAndOrder.order.id}`,
buildRedirectUrlAfter3ds1Error: (err) => '/?3ds1-server-error'
}
}
},
};
adyenCheckoutApiBaseUrl
- for sandbox, it should behttps://checkout-test.adyen.com
, and for live it should behttps://{PREFIX}-checkout-live.adyenpayments.com/
, you can read more about it here (opens new window) - use only base URL from the linked document.
Make sure to modify base URL for the production environment.
Make sure the adyenApiKey
property from the previous migration guide is present too.