pulkitjalan / laravel-braintree
Laravel Service Provider for Braintree
Installs: 6 833
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=5.5
- braintree/braintree_php: ~3
- illuminate/support: ~5
This package is auto-updated.
Last update: 2023-05-10 20:42:06 UTC
README
Laravel Service Provider for Braintree
Requirements
- Laravel >= 5.1
Installation
Install via composer - edit your composer.json
to require the package.
composer require pulkitjalan/laravel-braintree
Add the following to the providers
array in your config/app.php
PulkitJalan\Braintree\BraintreeServiceProvider::class
Next, You should configure the following options in your services.php
file:
'braintree' => [ 'environment' => env('BRAINTREE_ENV'), 'merchant_id' => env('BRAINTREE_MERCHANT_ID'), 'public_key' => env('BRAINTREE_PUBLIC_KEY'), 'private_key' => env('BRAINTREE_PRIVATE_KEY'), ],
Finally, set the environment variables in your .env
file:
BRAINTREE_ENV=YOUR_BRAINTREE_ENV
BRAINTREE_MERCHANT_ID=YOUR_BRAINTREE_MERCHANT_ID
BRAINTREE_PUBLIC_KEY=YOUR_BRAINTREE_PUBLIC_KEY
BRAINTREE_PRIVATE_KEY=YOUR_BRAINTREE_PRIVATE_KEY
https://articles.braintreepayments.com/control-panel/important-gateway-credentials