rdrnnr87/moolah

A simple wrapper for the Braintree PHP library.

v0.0.5 2022-05-01 15:48 UTC

This package is not auto-updated.

Last update: 2024-05-13 07:40:32 UTC


README

Latest Version on Packagist Software License Actions Status Coverage Status Quality Score Total Downloads

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.