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'
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'