Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for using webhooks? #105

Open
nhtahoe opened this issue Sep 29, 2021 · 1 comment
Open

Documentation for using webhooks? #105

nhtahoe opened this issue Sep 29, 2021 · 1 comment

Comments

@nhtahoe
Copy link

nhtahoe commented Sep 29, 2021

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.

@slince
Copy link
Owner

slince commented Sep 30, 2021

You can us webhook service like others. Events/WebhookManager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants