Closed TheoGautier closed 2 years ago
Hello Theo,
Thank you for reporting the issue, and providing a fix. We we will look into this, and release a version with the fix as soon as possible.
Kind regards, Worldline Support
Hello Theo,
The fix was just released in version 4.0.1. There are some changes compared to your fix.
This change will fix the related issue, please let us know if you experience any other issues.
Kind regards, Worldline Support
Hi Worldline,
Version:
4.0.0
Context: Failing validation of create payment body causes TypeError: sdkContext.getLogger is not a function in validation file. Parameters (I only explicit failing parameter):
Expected:
Cause:
sdkContext
is a function, not an object. A similar code can be found insrc/index.js
at line 35:const sdkContext = clientContext();
(const clientContext = require('./utils/context');
as line 5 states).I tried to create a Pull Request but I don't have the rights, here's my fix:
src/utils/obfuscate.js:
src/utils/validator.js
Can you please fix this? Thank you. I ran tests with this fix, and it works well.