bitbag/coinbase-plugin

Coinbase payment plugin for Sylius applications.


README

68747470733a2f2f73796c6975732e636f6d2f6173736574732f62616467652d617070726f7665642d62792d73796c6975732e706e67

Overview

This plugin allows you to integrate Coinbase payment with Sylius platform app.

Installation

  1. Require plugin with composer:

    composer require bitbag/coinbase-plugin
  2. Import routing on top of your config/routes.yaml file:

    bitbag_sylius_coinbase_plugin:
        resource: "@BitBagSyliusCoinbasePlugin/Resources/config/routing.yml"
  3. Add plugin class to your config/bundles.php file:

    $bundles = [
        BitBag\SyliusCoinbasePlugin\BitBagSyliusCoinbasePlugin::class => ['all' => true],
    ];
  4. Clear cache:

    bin/console cache:clear

Webhook subscriptions

For proper operation of the plugin, it is necessary to add a URL to notifications about the status of the payment. The URL can be set in the settings and should be in a similar format as https://{your_domain}/payment/coinbase/notify

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_coinbase_plugin

Testing

$ composer install
$ cd tests/Application
$ yarn install
$ yarn run gulp
$ bin/console assets:install web -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 -d web -e test
$ open http://localhost:8080
$ bin/behat
$ bin/phpspec run

Contribution

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