PHP code example of adman9000 / gocardless-laravel

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

    

adman9000 / 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="Nestednet\Gocardless\GocardlessServiceProvider"

config/gocardless.php