Skip to content

Aleffio/adyen-testcards-extension

 
 

Repository files navigation

Adyen Test Cards Chrome extension

A Chrome extension allowing to copy and prefill Adyen test card numbers with a single click.

Check also our video to learn how to install and use it.

Browser extension image

Adyen Test Cards

Adyen provides test card numbers to test the Checkout integration with different payment methods and flows.

This Chrome extension brings those test card numbers directly into your browser where you can:

  • copy the card number to the clipboard
  • prefill the Adyen Web Drop-in with the selected card details and perform the testing quickly and easily.

Installation

Installing from Chrome Web Store

  1. Find the extension in the Chrome Web Store
  2. Click "Add to Chrome"

The installation will warn that the extension can read and write data on all websites:

Chrome Web Store message

Note This is necessary as we do not know where your integration is hosted. The Adyen Test Cards extension only copies (using Javascript) the selected card details into the Credit Card fields. No other data or fields are read or changed. All of the code is Open-Source and there is no telemetry in this extension.

Installing from source

  1. Go to the Extensions page by entering chrome://extensions in a new tab.
  2. Enable Developer Mode.
  3. Click the "Load unpacked" button and select the extension directory.

Usage

Open the extension and choose a card number.

Contributing

We commit all our new features directly into our GitHub repository. Feel free to request or suggest new features or code changes yourself as well!

Find out more in our contributing guidelines.

Build & PR

To contribute:

  • create a new GitHub issue (please specify if it is a feature, improvement or bug fix)
  • create a local branch
  • develop and test your changes locally ("Load unpacked" from your source)
  • run the E2E tests locally
    cd e2e
    npx playwright test
    
  • submit a PR

Note: the list of cards, giftcards, etc.. are saved (as JSON) on local storage. If the JSON format changes then the existing users might be affected (breaking change?).

Mantainers

Build & publish

In order to publish a new release:

  • develop and test features and changes
  • update manifest.json (update version and other applicable attributes ie update description, modify permissions, etc..)
  • create zip file: zip -r adyen-testcards-ext.zip ./ -x "./e2e/*" ".git/*" "./chrome-store-assets/*"
  • upload zip file to Chrome Web Store

Note: the list of cards, giftcards, etc.. are saved (as JSON) on local storage. If the JSON format changes then the existing users might be affected (breaking change?).

License

MIT license. For more information, see the LICENSE file.

About

Browser extension with Adyen Test Cards

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.2%
  • TypeScript 20.8%
  • CSS 12.9%
  • HTML 2.1%