PHP code example of benjaminbowles / gocardless-laravel

1. Go to this page and download the library: Download benjaminbowles/gocardless-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/ */

    

benjaminbowles / gocardless-laravel example snippets


Route::gocardlessWebhooks('gocardless-webhook-endpoint');

protected $except = [
    'gocardless-webhook-endpoint',
];

'jobs' => [
 // '{resource_type}_{action} => path/to/job::class,
    'payments_created' => App\Jobs\PaymentConfirmed::class,
]

/**
 * The event listener mappings for the application.
 *
 * @var array
 */
protected $listen = [
    'gocardless-webhooks::payments_created' => [
        App\Listeners\ListenerOfPaymentsCreated::class,
    ],
];
bash
$ php artisan vendor:publish --provider="Benjaminbowles\Gocardless\GocardlessServiceProvider"

config/gocardless.php