Imported from nobuyaiwao/adyen-online-demo (
AGENTS.md). Install upstream withnpx skills add nobuyaiwao/adyen-online-demo. Copyright stays with the author.
Adyen Payment Demo
Project layout
server.jsis the Node.js API proxy and static-file server.src/contains standalone Adyen Checkout demo pages.- Each payment-method demo normally has an
index.htmland matching JavaScript file. - Shared browser helpers, including
/paymentsand/payments/detailscalls, are insrc/util.js.
Local development
node --env-file=.env server.js
The application listens on port 3000 by default.
Implementation guidelines
- Keep payment-method changes scoped to the relevant
src/<payment-method>/directory. - Use the existing
makePaymentandmakeDetailshelpers for API calls. - Forward Adyen response actions through the component callbacks.
- Preserve
redirectResultand other payment tokens without decoding or changing them. - Never commit
.envfiles, API keys, payment tokens, or real shopper data.
Validation
- Run
node --checkon modified JavaScript files. - Run
git diff --check. - For server changes, run
node --check server.jsand exercise the affected route.