/SyliusBraintreePlugin

Sylius Braintree payment gateway integration.

Primary LanguagePHPMIT LicenseMIT

Overview

This plugin allows you to integrate Braintree payment with Sylius platform app. It includes all Sylius and Braintree payment features, including refunding orders.

Support

We work on amazing eCommerce projects on top of Sylius and Pimcore. Need some help or additional resources for a project? Write us an email on mikolaj.krol@bitbag.pl or visit our website! 🚀

Demo

We created a demo app with some useful use-cases of the plugin! Visit demo.bitbag.shop to take a look at it. The admin can be accessed under demo.bitbag.shop/admin link and sylius: sylius credentials.

Installation

$ composer require bitbag/braintree-plugin 

Add plugin dependencies to your AppKernel.php file:

$bundles = [
   new \BitBag\SyliusBraintreePlugin\BitBagSyliusBraintreePlugin(),
];

Import configuration:

imports:
    ...
    
    - { resource: "@BitBagSyliusBraintreePlugin/Resources/config/config.yml" }

Customization

Available services you can decorate and forms you can extend

Run the below command to see what Symfony services are shared with this plugin:

$ bin/console debug:container bitbag_sylius_braintree_plugin

Testing

$ composer install
$ cd tests/Application
$ yarn install
$ yarn build
$ bin/console assets:install public -e test
$ bin/console doctrine:database:create -e test
$ bin/console doctrine:schema:create -e test
$ bin/console server:run 127.0.0.1:8080 -e test
$ open http://localhost:8080
$ vendor/bin/behat
$ vendor/bin/phpspec run
$ vendor/bin/phpunit

Contribution

Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.