PHP code example of axel / subscription-webhooks

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

    

axel / subscription-webhooks example snippets


return [

    'jobs' => [
        'apple'=>[
            // 'initial_buy' => \App\Jobs\AppstoreNotifications\HandleInitialBuy::class,
        ],
        'android'=>[
            // 'initial_buy' => \App\Jobs\AppstoreNotifications\HandleInitialBuy::class,
        ]
    ],
];



namespace App\Jobs\AppstoreNotifications;
use Axel\SubscriptionWebhooks\Jobs\BaseJob;

class AnyJobFile extends BaseJob
{
    public function handle()
    {
        // Do something that matches your business logic with $this->payload
    }
}
bash
php artisan vendor:publish 
 
bash
php artisan migrate