{"id":18051759,"url":"https://github.com/apimatic/adyen-sample-application","last_synced_at":"2025-07-23T05:33:37.607Z","repository":{"id":68154721,"uuid":"603063975","full_name":"apimatic/adyen-sample-application","owner":"apimatic","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-17T14:45:17.000Z","size":3949,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T07:13:43.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apimatic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-17T14:44:39.000Z","updated_at":"2023-02-17T14:45:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b2d4ed7-6e45-4d25-ba48-7fdb176803fd","html_url":"https://github.com/apimatic/adyen-sample-application","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apimatic/adyen-sample-application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fadyen-sample-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fadyen-sample-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fadyen-sample-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fadyen-sample-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apimatic","download_url":"https://codeload.github.com/apimatic/adyen-sample-application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fadyen-sample-application/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266624744,"owners_count":23958299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T22:55:43.620Z","updated_at":"2025-07-23T05:33:37.581Z","avatar_url":"https://github.com/apimatic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adyen [online payment](https://docs.adyen.com/checkout) integration demos\n\n## Run this integration in seconds using [Gitpod](https://gitpod.io/)\n\n* Open your [Adyen Test Account](https://ca-test.adyen.com/ca/ca/overview/default.shtml) and create a set of [API keys](https://docs.adyen.com/user-management/how-to-get-the-api-key).\n* Go to [gitpod account variables](https://gitpod.io/variables).\n* Set the `ADYEN_BASIC_AUTH_USERNAME`,`ADYEN_BASIC_AUTH_PASSWORD`, `ADYEN_CLIENT_KEY`, `ADYEN_HMAC_KEY` and `ADYEN_MERCHANT_ACCOUNT variables`.\n* Click the button below!\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/mehnoorsiddiqui/adyen-sample-app)\n\n_NOTE: To allow the Adyen Drop-In and Components to load, you have to add `https://*.gitpod.io` as allowed origin for your chosen set of [API Credentials](https://ca-test.adyen.com/ca/ca/config/api_credentials_new.shtml)_\n\n## Details\n\n\nThis repository includes examples of PCI-compliant UI integrations for online payments with Adyen. Within this demo app, you'll find a simplified version of an e-commerce website, complete with commented code to highlight key features and concepts of Adyen's API. Check out the underlying code to see how you can integrate Adyen to give your shoppers the option to pay with their preferred payment methods, all in a seamless checkout experience.\n\n![Card checkout demo](public/images/cardcheckout.gif)\n\n## Supported Integrations\n\n**Node.js + Express** demos of the following client-side integrations are currently available in this repository:\n\n- [Drop-in](https://docs.adyen.com/checkout/drop-in-web)\n- [Component](https://docs.adyen.com/checkout/components-web)\n  - ACH\n  - Alipay\n  - Boleto Bancário\n  - Card (3DS2)\n  - Dotpay\n  - giropay\n  - iDEAL\n  - Klarna (Pay now, Pay later, Slice it)\n  - SEPA Direct Debit\n  - SOFORT\n\nEach demo leverages Adyen's API Library for Node.js ([GitHub](https://github.com/Adyen/adyen-node-api-library) | [Docs](https://docs.adyen.com/development-resources/libraries#javascript)).\n\n## Requirements\n\nNode.js 12+\n\n## Installation\n\n1. Clone this repo:\n\n```\ngit clone https://github.com/mehnoorsiddiqui/adyen-sample-app\n```\n2. Navigate to the SDK directory( Adyen+Checkout+API) and install dependencies:\n\n```\nnpm install\n```\n\n3. Navigate to the root directory and install dependencies:\n\n```\nnpm install\n```\n\n## Usage\n\n1. Create a `./.env` file with all required configuration\n   - [Basic Auth username/password](https://docs.adyen.com/development-resources/api-credentials#basic-authentication)\n   - [Client Key](https://docs.adyen.com/user-management/client-side-authentication)\n   - [Merchant Account](https://docs.adyen.com/account/account-structure)\n   - [HMAC Key](https://docs.adyen.com/development-resources/webhooks/verify-hmac-signatures)\n\nRemember to include `http://localhost:8080` in the list of Allowed Origins\n\n```\nPORT=8080\nADYEN_BASIC_AUTH_USERNAME=\"your_API_basic_auth_username_here\"\nADYEN_BASIC_AUTH_PASSWORD=\"your_API_basic_auth_password_here\"\nADYEN_MERCHANT_ACCOUNT=\"your_merchant_account_here\"\nADYEN_CLIENT_KEY=\"your_client_key_here\"\nADYEN_HMAC_KEY=\"your_hmac_key_here\"\n```\n\n2. Start the server:\n\n```\nnpm run dev\n```\n\n3. Visit [http://localhost:8080/](http://localhost:8080/) to select an integration type.\n\nTo try out integrations with test card numbers and payment method details, see [Test card numbers](https://docs.adyen.com/development-resources/test-cards/test-card-numbers).\n\n## Testing webhooks\n\nWebhooks deliver asynchronous notifications and it is important to test them during the setup of your integration. You can find more information about webhooks in [this detailed blog post](https://www.adyen.com/blog/Integrating-webhooks-notifications-with-Adyen-Checkout).\n\nThis sample application provides a simple webhook integration exposed at `/api/webhooks/notifications`. For it to work, you need to:\n\n1. Provide a way for the Adyen platform to reach your running application\n2. Add a Standard webhook in your Customer Area\n\n### Making your server reachable\n\nYour endpoint that will consume the incoming webhook must be publicly accessible.\n\nThere are typically 3 options:\n* deploy on your own cloud provider\n* deploy on Gitpod\n* expose your localhost with tunneling software (i.e. ngrok)\n\n#### Option 1: cloud deployment\nIf you deploy on your cloud provider (or your own public server) the webhook URL will be the URL of the server \n```\n  https://{cloud-provider}/api/webhooks/notifications\n```\n\n#### Option 2: Gitpod\nIf you use Gitpod the webhook URL will be the host assigned by Gitpod\n```\n  https://myorg-myrepo-y8ad7pso0w5.ws-eu75.gitpod.io/api/webhooks/notifications\n```\n**Note:** when starting a new Gitpod workspace the host changes, make sure to **update the Webhook URL** in the Customer Area\n\n#### Option 3: localhost via tunneling software\nIf you use a tunneling service like [ngrok](ngrok) the webhook URL will be the generated URL (ie `https://c991-80-113-16-28.ngrok.io`)\n\n```bash\n  $ ngrok http 8080\n  \n  Session Status                online                                                                                           \n  Account                       ############                                                                      \n  Version                       #########                                                                                          \n  Region                        United States (us)                                                                                 \n  Forwarding                    http://c991-80-113-16-28.ngrok.io -\u003e http://localhost:8080                                       \n  Forwarding                    https://c991-80-113-16-28.ngrok.io -\u003e http://localhost:8080           \n```\n\n**Note:** when restarting ngrok a new URL is generated, make sure to **update the Webhook URL** in the Customer Area\n\n### Set up a webhook\n\n* In the Customer Area go to Developers -\u003e Webhooks and create a new 'Standard notification' webhook.\n* Enter the URL of your application/endpoint (see options [above](#making-your-server-reachable))\n* Define username and password for Basic Authentication\n* Generate the HMAC Key\n* Optionally, in Additional Settings, add the data you want to receive. A good example is 'Payment Account Reference'.\n* Make sure the webhook is **Enabled** (therefore it can receive the notifications)\n\nThat's it! Every time you perform a new payment, your application will receive a notification from the Adyen platform.\n\n## Contributing\n\nWe commit all our new features directly into our GitHub repository. Feel free to request or suggest new features or code changes yourself as well!\n\nFind out more in our [Contributing](https://github.com/adyen-examples/.github/blob/main/CONTRIBUTING.md) guidelines.\n\n## License\n\nMIT license. For more information, see the **LICENSE** file in the root directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapimatic%2Fadyen-sample-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapimatic%2Fadyen-sample-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapimatic%2Fadyen-sample-application/lists"}