This is a proof of concept container for testing Adyen PayPal Express Checkout integration.
With this container you can request a payment to be taken from a users PayPal account using Adyens HHP api. Once the payment has been taken the callback will display the returned result and validate the response.
- For this container to work you need to have PayPal Express Checkout enabled and have Hosted Payment Pages enabled to take PayPal payments.
- Container uses the Adyen HMAC Validator library to calculate the signature
Pull the container from Docker Hub
docker pull imacatlol/adyen-paypal-express-checkout
Set the environment variables and start the container
docker run \
-d -p 127.0.0.1:4747:80 \
--name adyen-paypal-express-checkout \
-e ADYEN_SKINCODE="SkinCode" \
-e ADYEN_MERCHANT="Merchant-Account" \
-e ADYEN_HMAC="YOUR_HMAC_CODE" \
imacatlol/adyen-paypal-express-checkout
You can then open the web app from your browser
open http://0.0.0.0:4747
The following environment variables are mandatory:
ADYEN_SKINCODE
, ADYEN_MERCHANT
, ADYEN_HMAC
Additional vars can be passed with -e
to override the defaults:
param | var | default |
---|---|---|
currencyCode |
ADYEN_CURRENCY_CODE |
GBP |
paymentAmount |
ADYEN_AMOUNT |
2000 |
shopperEmail |
ADYEN_SHOPPER_EMAIL |
test@adyen.com |
resURL |
ADYEN_RES_URL |
http://127.0.0.1:4747/callback.php |
Update the values in the text area and then submit update payload
to set the values and generate a new HMAC.
This container is based on the HPP Create Payment sample code.