Comments (9)
Are you testing locally? As mentioned in the wiki https://github.com/Kyon147/laravel-shopify/wiki/Creating-Webhooks#webhook-requirements they are highly inconsistent when testing locally.
I have webhooks working on the latest version on prod, so I suspect this is a set up issue not a package one.
Re-open if you have more information that it could be package specific.
from laravel-shopify.
@Kyon147 , I am testing on the server. But its response is null. Kindly help me why the webhooks are not give response on the server. Kindly revert on this as soon as possible. so we can resolve the issue and run the webhooks on the server.
Thanks.
from laravel-shopify.
@a-akashsoni I'll need more information to help you.
Can you link me to your codebase so I can see your set up.
from laravel-shopify.
@Kyon147 you can check the webhooks in config.php. Code is below for webhook in config.php.
`'webhooks' => [
/*
[
'topic' => env('SHOPIFY_WEBHOOK_1_TOPIC', 'ORDERS_CREATE'),
'address' => env('SHOPIFY_WEBHOOK_1_ADDRESS', 'https://some-app.com/webhook/orders-create')
], [
'topic' => env('SHOPIFY_WEBHOOK_2_TOPIC', 'APP_PURCHASES_ONE_TIME_UPDATE'),
'address' => env('SHOPIFY_WEBHOOK_2_ADDRESS', 'https://some-app.com/webhook/purchase'),
]
...
*/
[
'topic' => env('SHOPIFY_WEBHOOK_1_TOPIC','FULFILLMENTS_CREATE'),
'address' => env('SHOPIFY_WEBHOOK_1_ADDRESS','https://shipping-carrier.auspicioussoft.com/webhook/fulfillments-create')
],
[
'topic' => env('SHOPIFY_WEBHOOK_2_TOPIC','FULFILLMENTS_UPDATE'),
'address' => env('SHOPIFY_WEBHOOK_2_ADDRESS','https://shipping-carrier.auspicioussoft.com/webhook/fulfillments-update')
],
],`
You can check the whole code for fulfillment Create Job is below. Kindly check the code for Job also.
`<?php namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Osiset\ShopifyApp\Objects\Values\ShopDomain;
use stdClass;
use App\User;
use Log;
class FulfillmentsCreateJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Shop's myshopify domain
*
* @var ShopDomain|string
*/
public $shopDomain;
/**
* The webhook data
*
* @var object
*/
public $data;
/**
* Create a new job instance.
*
* @param string $shopDomain The shop's myshopify domain.
* @param stdClass $data The webhook data (JSON decoded).
*
* @return void
*/
public function __construct($shopDomain, $data)
{
$this->shopDomain = $shopDomain;
$this->data = $data;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
info($data);
// Convert domain
$this->shopDomain = ShopDomain::fromNative($this->shopDomain,$this-> data,$data);
try{
$shop = User::where('name', $this->shopDomain)->first();
}
catch(\Exception $e){
Log::error($e->getMessage());
}
// Do what you wish with the data
// Access domain name as $this->shopDomain->toNative()
}
}`
Kindly check the code and revert on the same as soon as possible.
Thanks.
from laravel-shopify.
Does the order create webhook work?
from laravel-shopify.
I would try a different webhook to see if it is an issue with the fulfilment ones.
from laravel-shopify.
@Kyon147 , Is different webhook is working properly.
from laravel-shopify.
@Kyon147 I have shared Job handle function code with you. when I run info($data) command , it does not show anything.
Kindly check the issue help me to resolve the issue.
Thanks.
from laravel-shopify.
@Kyon147 Any update on this issue ?
from laravel-shopify.
Related Issues (20)
- change to shopify frontend engine react HOT 1
- install app button gets disabled using this package HOT 2
- I need help regarding the billing voucher code
- Kyon Shopify Laravel "cURL error 28: Operation timed out after 10043 milliseconds with 0 bytes received (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html) for https:\/\/*******.com\/admin\/api\/2024-01\/products.json" HOT 3
- Urgent : Is it possible to pay in euros? HOT 3
- Class "Osiset\BasicShopifyAPI\Store\Memory" not found HOT 2
- Usage Charges Redirecting to Blank Page HOT 4
- Unable to set freemium flag on app uninstallation. HOT 2
- Problem reinstalling, but no error logs HOT 39
- Form Redirect Issue HOT 2
- Not Supported in Laravel 11 HOT 1
- Usage Charges Redirecting to Blank Page HOT 1
- Installing on October or Winter CMS HOT 2
- Missing csp in scripts and styles tags HOT 1
- it requires api_key but now shopify uses oauth which is required client_id and client_secret so there us no more api_key. So how to get the access_token now? HOT 1
- issue 'Unable to verify signature.' where the HMAC signature sent by Shopify during authentication suddenly does not match HOT 3
- Show blank page after app install in my store HOT 3
- Not able to create webhooks HOT 8
- AfterAuthenticate Job and Script Tags Not Triggered Upon Reinstallation of App HOT 2
- Deprecating of billing_on field on the UsageCharge resource HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-shopify.