Coder Social home page Coder Social logo

acampos1916 / adyen-magento-plugin-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adyen-examples/adyen-magento-plugin-demo

0.0 0.0 0.0 5.56 MB

A demo application on how to accept payments on your Adobe Commerce (Magento) E-commerce website with cards, wallets, and key local payment methods.

License: MIT License

Shell 100.00%

adyen-magento-plugin-demo's Introduction

Adyen Magento 2 Plugin integration demo

In this demo, you can spin up a Magento instance and install the Adyen Payment plugin to see how it works. You can try this demo online in one click using Gitpod (a remote IDE) or locally on your computer using Docker.

Demo Video

Demo Video

Running online with Gitpod

  1. Open your Adyen Test Account and create a set of API keys.
  • Go to gitpod account variables
  • Set the ADYEN_API_KEY, ADYEN_CLIENT_KEY and ADYEN_MERCHANT_ACCOUNT variables (Scope: adyen-examples/*).
  • Set ADMIN_USERNAME and ADMIN_PASSWORD in the Gitpod account variables as well. These will be used as your login credentials in the Magento admin dashboard. (Scope: adyen-examples/*).

Note ADMIN_PASSWORD must contain alphanumeric characters (Magento requirement).

  1. Click the button below and wait ~260s (4 minutes) (for the Magento installation). You should have magento2-container | Starting periodic command scheduler: cron. before proceeding to next step.

Open in Gitpod

  1. Open a new Terminal in the current directory and run ./install.sh to install and configure the Adyen payment plugin.
  2. Visit your shop on the generated preview URL
  3. Visit previewURL/admin/ and login to see that the Magento Plugin is installed correctly. Login using the ADMIN_USERNAME and ADMIN_PASSWORD you created in step 2 above.
  4. You can see the GitPod account variables which are automatically set in Step 2 above, visit StoresConfigurationSales (submenu)Payment MethodsOther Payment MethodsAdyen PaymentsRequired Settings.

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.

Checkout demo

Running locally

If you don't want to run this demo online, then follow these steps.

Requirements

  • Docker

Installation

  1. Clone this repo:
git clone https://github.com/adyen-examples/adyen-magento-plugin-demo.git
  1. Navigate to the root directory, set APP_URL and port. You can use your preferred port:
export APP_URL=127.0.0.1:8080
  1. Run docker compose to spin up the Magento Docker image. This may take a few minutes depending on your internet and system speed.
docker-compose up
  1. Open a new terminal tab in the current directory and install the Adyen Magento plugin:
./install.sh

Usage

  1. Visit shop page http://localhost:8080
  2. Login to the admin dashboard (http://localhost:8080/admin/) to configure your API keys. Remember to include http://localhost:8080 in the list of Allowed Origins on the Customer Area.

To try out integrations with test card numbers and payment method details, see Test card numbers.

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.

License

MIT license. For more information, see the LICENSE file in the root directory.

adyen-magento-plugin-demo's People

Contributors

ayodejidev avatar kwok-he-chu avatar michaelpaul avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.