PHP code example of brunodebarros / paypal-ipn-laravel

1. Go to this page and download the library: Download brunodebarros/paypal-ipn-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

brunodebarros / paypal-ipn-laravel example snippets


'providers' => array(
    // ...

    'LogicalGrape\PayPalIpnLaravel\PayPalIpnServiceProvider',
)

'aliases' => array(
    // ...

    'IPN' => 'LogicalGrape\PayPalIpnLaravel\Facades\IPN',
)

$order = IPN::getOrder();

Route::post('ipn', array('uses' => 'IpnController@store', 'as' => 'ipn'));
bash
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
bash
$ php artisan migrate --package logicalgrape/paypal-ipn-laravel
bash
$ php artisan config:publish logicalgrape/paypal-ipn-laravel
bash
$ php artisan controller:make IpnController --only=post