Adyen Payment By Link


Azure Function

Azure Function and Storage Account will be provided by Dynammics Connect, hosted by us or to be hosted on your Azure subscription. The Azure function will be used to catch the callbacks from Adyen and store them in Azure Blob.

Adyen Portal

The Integration with Aden is linked to one of your Merchant Accounts that can be found in Adyen portal under Settings->Merchant Accounts

Merchant Account

To get the Payment Link, an API Key is needed which can be found under Developers->API Credentials. Select the integration account and copy the API Key.

Merchant Account
Merchant Account

Once the payment link is used, Adyen sends a callback with payment details to the designated webhook above.

To catch these callbacks, an Azure function was created. The Azure function URL must be set in the Adyen portal under Developers->Webhooks:

Merchant Account

Azure Blob

Azure Blob containers are needed to store the received callbacks from Adyen. A new container must be created with authentication set to access Key

Azure Blob

Access Keys can be found under storage account -> Access Keys.

Access Keys

Business Central

Adyen Setup page
  • Adyen Uri: https://checkout-test.adyen.com/v70 - static - different for prod
  • Merchant Account: from Adyen portal
  • API Key: from Adyen portal
  • Azure File Storage URI: from Azure portal - static
  • Account Name: from Azure portal
  • Shared Resource: from Azure portal
  • Shared Access Key: from Azure Portal
  • Payment Method Code will trigger link creation and Hyperlink Text which will be used in documents.

Adyen Setup

By Link is part of Sales Quote, Sales Order, Sales Invoice and ProForma. If you set Payment Method code to one that is defined in Adyen setup, during printing of the document, link is generated and included in the layout. This way you can reuse base flow to send documents which will include pay by link.

Sales Quote

Once payment is received, it will be posted with same document No. as the source document. Pay By Link will be visible in it's own tab in mentioned documents.

Pay By Link Tab
Job Queue

Create a Job Queue or Scheduler Job for Codeunit 72178577. This Codeunit will check the Azure Blob for any new callbacks from Adyen. Once it is processed - callback files will be deleted.