'How can I integrate Adyen on my website
As I can integrate Adyen API into my website, the checkout documentation does not seem very specific to me. Does anyone have an example?
Solution 1:[1]
You can refer to the GitHub examples: Adyen GitHub and the API reference will give you an idea of how the request and response looks like: Here
Solution 2:[2]
The workflow is a lot simpler these days:
Access the Adyen Customer Area (with your Adyen account) and setup the keys:
API key: required to access the Adyen platform
Client Key: required to render client components
Merchant Account: merchant identifier
HMAC Key: required to perform webhook authenticationSetup a webhook: this is necessary to receive the final confirmation of each payment transaction.
In the Adyen Customer Area do not forget to update the Allowed Origin list: include the URL(s) of the web application which will host the Adyen checkout. This is a very important step and often overlooked during the setup.
Integrate the Web Drop-in (*): given the nature of the project (web site) the most convenient approach is to use the Web Drop-in which renders the payment methods available to the shopper (ie based on country and other factors) and takes care of the payment execution.
Implement the Webhook (*) that will receive the payment confirmation from the Adyen server.
(*) Adyen supports a variety of languages and frameworks. Head to Adyen Examples repositories and checkout the example that suits your need (ie Python with Flask, Java with Spring, .Net core, etc..).
Every example includes the instructions on how to setup and run the demo as well as the code needed to integrate the Drop-in and the webhook.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | michaelngangom |
| Solution 2 | Beppe C |
