Closed mutuku closed 3 years ago
I am trying to create a webhook on live. On the sandbox it is working well, but failing on live. My Application is enabled on Kopokopo.
$response = $webhooks->subscribe([ 'eventType' => 'buygoods_transaction_received', 'url' => 'https://yyyy/zzzz.php', 'scope' => 'till', 'scopeReference' => 'xxxxx', 'accessToken' => $accessToken ]);
Where yyyy, zzzz, xxxx are private values. Notably xxxx is the till number.
The response returned has not error info
Getting the access token is working well.
Was using the wrong url - app.kopokopo.com instead of api.kopokopo.com
I am trying to create a webhook on live. On the sandbox it is working well, but failing on live. My Application is enabled on Kopokopo.
$response = $webhooks->subscribe([ 'eventType' => 'buygoods_transaction_received', 'url' => 'https://yyyy/zzzz.php', 'scope' => 'till', 'scopeReference' => 'xxxxx', 'accessToken' => $accessToken ]);
Where yyyy, zzzz, xxxx are private values. Notably xxxx is the till number.
The response returned has not error info
Getting the access token is working well.