Skip to content

Documentation for using webhooks? #105

@nhtahoe

Description

@nhtahoe

Greate package, saving me a ton of time!

Question: I see webhooks mentioned several places, but no information about how to use this package to manage them.

Eg. in the config, I see

	'route_names'       => [
		'webhook'              => env('SHOPIFY_ROUTE_NAME_WEBHOOK', 'webhook'),
		...

and

	/*
	|--------------------------------------------------------------------------
	| Shopify Webhooks
	|--------------------------------------------------------------------------
	|
	| This option is for defining webhooks.
	| Key is for the Shopify webhook event
	| Value is for the endpoint to call
	|
	*/

	'webhooks' => [
		/*
			[
				'topic' => env('SHOPIFY_WEBHOOK_1_TOPIC', 'orders/create'),
				'address' => env('SHOPIFY_WEBHOOK_1_ADDRESS', 'https://some-app.com/webhook/orders-create')
			],
			...
		*/
	],

But how do I use these? For instance to set up a webhook endpoint for my app that listens for Order payment and extracts the information from that hook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions