Closed georgeboot closed 7 years ago
@georgeboot Thanks for posting! We'll shortly look into it and fix it.
Hey @georgeboot while we are looking into this as a quick fix you can comment out this line and it should work:
Let me know if this works 👍
That unfortunately does not solve the issue!
https://github.com/bunq/sdk_php/blob/e5c53d3f7c408f0af5e562f3e95eb3f57780a50d/lib/Context/ApiContext.php#L22 serves a certificate for sandbox.search.api.bunq.com
. When I changed that part to api.bunq.com
I get one step further. By the way, I tried the same script with ApiClient
in original form: that gives me the same issue as mentioned in #7.
The next issue I'm hitting is found at https://github.com/bunq/sdk_php/blob/e5c53d3f7c408f0af5e562f3e95eb3f57780a50d/lib/Context/SessionContext.php#L60. This implementation only works for business accounts; I am currently testing on a personal account. As a result, it produces an error: Call to a member function getSessionTimeout() on null
@georgeboot thanks for pointing out the SessionContext
bug, UserCompany is indeed still there. Will include into the upcoming patch :)
Ah thats a nice spot @georgeboot, I'll create an separate issue for this as of it is not part of the main issue you have here 👍
Hey @georgeboot,
public.api.bunq.com is not our API url, this is a mistake on our end and will be fixed 👍 . The correct url is api.bunq.com
indeed. Take a look here #11
Fix applied in 2d37046040a4e6e125ce0fa4ddd6ef1c5ce7af9b.
Closing the issue, feel free to reopen if it is still not working 👍
When running the initialisation, I am getting an exception.
Am I missing something?
PHP version:
Curl version: