Braintree payment gateway integration code in laravel

Click here to setup braintree in laravel

* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use Auth;
use Illuminate\Support\Facades\Input;
use Braintree_Transaction;
use Braintree_Customer;
use Braintree_WebhookNotification;
use Braintree_Subscription;
use Braintree_CreditCard;
class PaymentController extends Controller { ...  Read More

Share This:

Integrate braintree payment gateway in laravel

1) In your Laravel project's composer.json file, add oureastudios/laravel5-braintree as a dependency in the require object:

"oureastudios/laravel5-braintree": "dev-master"

2) Update the composer

php composer.phar update or composer update

3) Once installed, add the ServiceProvider to your provider array within config/app.php:

'providers' => [
* Braintree Service Provider

4) Configuration

To publish a the package configuration file, run: ...  Read More

Share This: