You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug how the parameter 'testmode' data is provided for the PurchaseRequest.
Current code (snippet from $data parameter):
'testmode' => $this->getTestMode(),
This is not correct, the method 'getTestMode()' returns a boolean, but the Sisow API documentation says it should be filled with the string 'true' when testmode must be on.
I fixed this by extending the PurchaseRequest class and using the following code:
There is a bug how the parameter 'testmode' data is provided for the PurchaseRequest.
Current code (snippet from $data parameter):
'testmode' => $this->getTestMode(),
This is not correct, the method 'getTestMode()' returns a boolean, but the Sisow API documentation says it should be filled with the string 'true' when testmode must be on.
I fixed this by extending the PurchaseRequest class and using the following code:
'testmode' => $this->getTestMode() ? 'true' : 'false'
The text was updated successfully, but these errors were encountered: