The CheckBookIOBundle provides symfony support for checkbook.io API.
composer require beyerz/check-book-io-bundle
Add SimpleHMVC to the registerBundles() method of your application kernel:
public function registerBundles()
{
return array(
new Beyerz\CheckBookIOBundle\CheckBookIOBundle(),
);
}
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
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.
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.
This bundle is under the MIT license. See the complete license in the bundle
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.
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!!
How can I help you explore Laravel packages today?