beyerz/check-book-io-bundle

Symfony support for checkbook.io platform

Installs: 497

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.9 2017-01-09 10:06 UTC

This package is auto-updated.

Last update: 2024-12-18 21:46:49 UTC


README

Packagist Minimum PHP Version Build Status

CheckBookIOBundle

The CheckBookIOBundle provides symfony support for checkbook.io API.

Installation

Composer

composer require beyerz/check-book-io-bundle

Application Kernel

Add SimpleHMVC to the registerBundles() method of your application kernel:

public function registerBundles()
{
    return array(
        new Beyerz\CheckBookIOBundle\CheckBookIOBundle(),
    );
}

Config

config.yml

check_book_io:
    publishable_key:  "%checkbook_publishable_key%"       # public_key
    secret_key:       "%checkbook_secret_key%"            # private_key
    sandbox:          "%checkbook_sandbox%"               # use sandbox mode
    debug:            "%checkbook_debug%"                 # use debug mode
    merchant_name:    "%checkbook_merchant_name%"         # merchant name to use
    oauth:
      client_id:      "%checkbook_oauth_client_id%"
      handler:        path\to\custom\response\handler

Documentation

Using the bundle is extremely simple... anywhere that has access to container and services

$checkBook = $this->getContainer()->get('checkbook.model');

Boom!! You now have a facade to access all the Checkbook API Endpoints.

OAuth

Explained in detail here

Bonus Feature

Embedded form check

To use the embeded form check you should populate the Beyerz\CheckBookIOBundle\Context\EmbeddedCheckContext and pass it to your twig template. Then use {{ embedded_check(context) }} where context is the Beyerz\CheckBookIOBundle\Context\EmbeddedCheckContext This will automatically generate the checkbook button.

License

This bundle is under the MIT license. See the complete license in the bundle

Reporting an issue or feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

Disclaimer

Other than being a client, I have no connection to or with checkbookIO or any of its employees. Furthermore, the bundle comes as is and I cannot guarantee that the bundle will be updated with any changes that are done by checkbook, and if updates are done, how long they will take to be implemented and released. Like it or leave, but that's the reality. Enjoy and Play Safe!!