Getting issue with custom Shopify webhook (PHP)
I have created the private app for Shopify in core-PHP. My app was working fine. A few days ago I am getting an issue with my created private APP. when I check the log its show me error on the following line
$api_url = shopify-url $shopify = $api_url . '/admin/webhooks.json'; // webhook json URL $arguments = array('topic' => 'order/creation', 'address' => 'https://*********/shopify/print/webhook.php', 'format' => 'json' ); // define the arguments $webhooks = $api_url . '/admin/webhooks.json', $arguments; // on this line I got the syntax error about ",(comma before the $arguments)".
I am confused about this syntax how we can combine string and array into a single variable. Please help me out with this issue.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.