rdrnnr87 / moolah
A simple wrapper for the Braintree PHP library.
v0.0.5
2022-05-01 15:48 UTC
Requires
- php: ~5.6|~7.0|~8.0
- braintree/braintree_php: ^6.0
- vlucas/phpdotenv: ^5.0
Requires (Dev)
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2024-05-13 07:40:32 UTC
README
A simple wrapper for the Braintree PHP library.
Install
Via Composer
$ composer require rdrnnr87/moolah
Usage
Generating a token.
$config = [ 'environment' => 'sandbox', 'merchantId' => 'yourMerchantId', 'publicKey' => 'yourPublicKey', 'privateKey' => 'yourPrivateKey' ]; $moolah = new Moolah($config); $token = $moolah->getToken();
Making a one time charge.
$moolah = new Moolah($config); $moolah->charge($amount, $nonce);
Testing
$ phpunit
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email brian.johnsonx@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.