Skip to content

Bug in 'testmode' data parameter #17

@codyproxy

Description

@codyproxy

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions