Skip to content
This repository was archived by the owner on Oct 10, 2019. It is now read-only.
This repository was archived by the owner on Oct 10, 2019. It is now read-only.

Klarna::update does not clear data even if $clear is true #24

@cherudim

Description

@cherudim

Hi,

While reworking some code using this library we detected a problem where some invoices ended up with data from other orders as well, and after some investigation we found that the update-function in the Klarna class doesn't actually clear the object afterwards ($clear isn't used at all in that function), even thou the $clear-flag is set (by default) to true. Other similar functions like activate or reserveAmount does this, which makes me believe this is by omission.

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