Skip to content

How to set the test mode while making OAuth payment? #167

Description

@boryn

I use the test .env MOLLIE_KEY beginning with 'test_', but it's not enough while doing authentication through OAuth - it's necessary to pass the 'testmode' parameter. I can see in the code:

$options["testmode"] = $this->mode === "test" ? true : false;

but how to set the $this->mode? There is no setMode() method and while issuing:

$payment = Mollie::api()->payments->create([
// ...

there is no place to set the mode either.

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