Closed kamnjoro closed 3 years ago
@kamnjoro, is this with version 1.1.0? There were some bugs that were reported with the first version but the latest version fixed them. Could you confirm what version of the SDK you are using?
I just run composer require kopokopo/k2-connect-php afresh Cannot tell what SDK version is in use
You can check the version on the composer.json file. Also, what framework are you using?
I run Codeigniter
Some errors my team and I get during the testing phase are no where documented. I am able to easily get an access token. However, hitting the initiateIncomingPayment endpoint with the required options returns an empty error response shown below {"status":"error","data":{"errorCode":null,"errorMessage":null}} Here is my composer file { "require": { "kopokopo/k2-connect-php": "^1.1" } }
I am looking into this.
Any solutions on this
That error occurs when a wrong base url is being used. Confirm that you are using api.kopokopo.com instead of app.kopokopo.com
The example given in https://api-docs.kopokopo.com/?php#process-incoming-payment-result for the PhP version is unparsable. It is neither Json(even though header claims to be application/json) nor an array. While trying to parse it as array it leads it leads to the error " Illegal string offset" ***.