bitbag / adyen-plugin
Sylius Adyen payment gateway plugin.
Installs: 13 792
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 5
Forks: 11
Open Issues: 6
Type:sylius-plugin
Requires
- php: ^7.1
- sylius/sylius: ^1.0.4
Requires (Dev)
- behat/behat: ^3.3
- behat/mink: ^1.7
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.0
- friends-of-behat/cross-container-extension: ^1.0
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.0
- friends-of-behat/variadic-extension: ^1.0
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^3.2
- phpunit/phpunit: ^5.6
- se/selenium-server-standalone: ^2.52
- sylius-labs/coding-standard: ^1.0
- symplify/easy-coding-standard: ^2.4
This package is auto-updated.
Last update: 2022-04-14 13:24:33 UTC
README
⚠️ BEWARE! This repository has been deprecated and will not be maintained or evolved by the BitBag Team. You can still use it with compatible Sylius versions, but at your own risk, as no bugs will be fixed on it.
Here you can find the new version of the plugin: SyliusAdyenPlugin
Adyen Payments Plugin for Sylius
At BitBag we do believe in open source. However, we are able to do it just because of our awesome clients, who are kind enough to share some parts of our work with the community. Therefore, if you feel like there is a possibility for us working together, feel free to reach us out. You will find out more about our professional services, technologies and contact details at https://bitbag.io/.
Table of Content
- Overwiev
- Support
- Installation
- About us
- Demo Sylius shop
- Additional Sylius resources for developers
- License
- Contact
Overwiev
This plugin allows you to integrate Adyen payment system with Sylius platform app. It includes all Sylius and Adyen payment features.
We are here to help
This open-source plugin was developed to help the Sylius community and make Adyen payments platform available to any Sylius store. If you have any additional questions, would like help with installing or configuring the plugin or need any assistance with your Sylius project - let us know!
Installation
Requirements
We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.
Package | Version |
---|---|
PHP | ^7.1 |
Sylius | 1.0.4 |
$ composer require bitbag/adyen-plugin
Add plugin dependencies to your config/bundles.php
file:
return [ ... BitBag\SyliusAdyenPlugin\BitBagSyliusAdyenPlugin::class => ['all' => true], ];
Import routing in your config/routes.yaml
file:
# config/routes.yaml ... bitbag_sylius_adyen_plugin: resource: "@BitBagSyliusAdyenPlugin/Resources/config/routing.yml"
Import required config in your config/pacakges/_sylius.yaml
file:
# config/pacakges/_sylius.yaml imports: ... - { resource: "@BitBagSyliusAdyenPlugin/Resources/config/config.yml" }
Settings
Signature for notifications
Settings for notifications
- Sign in to the Customer Area and navigate to Settings > Server Communication.
- For Standard notification click Edit & Test.
- Required settings for transport
- Set URL for notifications: https://{your_domain}/payment/adyen/notify
- Set method: HTTP POST
- Expand Additional Settings.
- Click Generate New HMAC Key and copy the key to use it for your server configuration.
- Click Save Configuration. The generated HMAC key is now in effect and is used to sign all newly generated notifications.
How to get HMAC keys for a skin
https://docs.adyen.com/classic-integration/hosted-payment-pages/skin#configuration
How to get code for a skin
- Sign in to the Customer Area using your company-level account.
- On the left navigation sidebar, click Skins.
- Select an existing skin from the List and copy the contents of the skin code column
How to get Merchant account for a skin
- Sign in to the Customer Area using your company-level account.
- On the left navigation sidebar, click Skins.
- Select an existing skin from the List and copy the contents of the Valid accounts column
Test card numbers
Usage
Running plugin tests
-
PHPSpec
$ bin/phpspec run
-
Behat (non-JS scenarios)
$ bin/behat --tags="~@javascript"
-
Behat (JS scenarios)
-
Download Chromedriver
-
Run Selenium server with previously downloaded Chromedriver:
$ bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver
-
Run test application's webserver on
localhost:8080
:$ (cd tests/Application && bin/console server:run 127.0.0.1:8080 -d web -e test)
-
Run Behat:
$ bin/behat --tags="@javascript"
-
Opening Sylius with your plugin
-
Using
test
environment:$ (cd tests/Application && bin/console sylius:fixtures:load -e test) $ (cd tests/Application && bin/console server:run -d web -e test)
-
Using
dev
environment:$ (cd tests/Application && bin/console sylius:fixtures:load -e dev) $ (cd tests/Application && bin/console server:run -d web -e dev)
About us
BitBag is an agency that provides high-quality eCommerce and Digital Experience software. Our main area of expertise includes eCommerce consulting and development for B2C, B2B, and Multi-vendor Marketplaces. The scope of our services related to Sylius includes:
- Consulting in the field of strategy development
- Personalized headless software development
- System maintenance and long-term support
- Outsourcing
- Plugin development
- Data migration
Some numbers regarding Sylius:
- 20+ experts including consultants, UI/UX designers, Sylius trained front-end and back-end developers,
- 100+ projects delivered on top of Sylius,
- Clients from 20+ countries
- 3+ years in the Sylius ecosystem.
If you need some help with Sylius development, don't be hesitate to contact us directly. You can fill the form on this site or send us an e-mail to hello@bitbag.io!
Community
For online communication, we invite you to chat with us & other users on Sylius Slack.
Demo Sylius shop
We created a demo app with some useful use-cases of plugins! Visit b2b.bitbag.shop to take a look at it. The admin can be accessed under https://b2b.bitbag.shop/admin/login link and sylius: sylius credentials. Plugins that we have used in the demo:
If you need an overview of Sylius' capabilities, schedule a consultation with our expert.
Additional resources for developers
To learn more about our contribution workflow and more, we encourage ypu to use the following resources:
License
This plugin's source code is completely free and released under the terms of the MIT license.
Contact
If you want to contact us, the best way is to fill the form on our website or send us an e-mail to hello@bitbag.io with your question(s). We guarantee that we answer as soon as we can!