kopokopo / k2-connect-php

MIT License
6 stars 26 forks source link

Error Testing on live #8

Closed mutuku closed 3 years ago

mutuku commented 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

image

Getting the access token is working well.

mutuku commented 3 years ago

Was using the wrong url - app.kopokopo.com instead of api.kopokopo.com