Skip to content
This repository has been 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

Open
cherudim opened this issue Feb 6, 2019 · 0 comments
Open

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

cherudim opened this issue Feb 6, 2019 · 0 comments

Comments

@cherudim
Copy link

cherudim commented Feb 6, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant