Skip to content

solutlux/yii2-bigcommerce-webhooks-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search functionality

This extension manages Bigcommerce webhooks

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require deitsolutions/yii2-bigcommerce-webhooks-manager "*"

or add

"deitsolutions/yii2-bigcommerce-webhooks-manager": "*"

to the required section of your composer.json file.

Configuration

Once the extension is installed, modify your application configuration to include:

return [
	'modules' => [
	    ...
            'yii2bigcommercewebhooksmanager' => [
                'stores' => [
                    'storeId' => [
                        'adapter' => [
                            'type' => 'BigCommerce',
                            'auth' => [
                                'client_id' => client_id,
                                'store_hash' => store_hash,
                                'auth_token' => auth_token,
                                'sslForCurl' => true,
                                'webhookHash' => webhookHash,
                            ],
                            'webhooks' => [
                                'categories' => [
                                    'scope' => 'store/category/*',
                                    'headers' => [
                                        'X-Custom-Auth-Header' => ''
                                    ],
                                    'destination' => http://example.com/webhook/category,
                                    'is_active' => true,
                                ],
                                'products' => [
                                    'scope' => 'store/product/*',
                                    'headers' => [
                                        'X-Custom-Auth-Header' => ''
                                    ],
                                    'destination' => http://example.com/webhook/product,
                                    'is_active' => true,
                                ],
                                ...
                            ],
                        ],
                    ],
                    ...
                ],
            ],
	    ...
	],
	...
];

License

See the bundled LICENSE.md for details.

About

This extension manages Bigcommerce webhooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages