wl-online-payments-direct / sdk-nodejs

Other
3 stars 0 forks source link

Authorization error when using more then one instance #3

Closed Ivanna-Nagirna closed 2 years ago

Ivanna-Nagirna commented 2 years ago

Hello, The SDK works perfectly in case we use a single instance in our node application But as soon as we initiate the second instance for requests to another Ingenico account (using immutableInit method) the first one brakes (403 ACCESS_TO_MERCHANT_NOT_ALLOWED). Why? Well, it looks like for the requests it sends Authorization header of second instance. So as a result we have only one worked instance, the one that was initiated last. Is there any workaround for this?

worldline-direct-support-team commented 2 years ago

Hi Ivanna! We're working on a fix for this which we expect to roll out soon. Unfortunately we cannot offer a work-around in the meantime.

Kind regards, Worldline support team

mho-drouot commented 2 years ago

Hi, any news regarding the fix release date?
We have as well to manage several groups, and we already set a software increment release objective in mid-August 2022... Without the fix, we cannot integrate the SDK, and that could be troublesome for our next features (3DSV2 payment, etc.)

Best of luck for the fix, MH

worldline-direct-support-team commented 2 years ago

Hi @mho-drouot, @Ivanna-Nagirna,

Version 4.0.0 of the NodeJS SDK has just been published. It contains the fix.

Be aware that there is major version bump as there is a breaking change in the cancelPayment function in certain cases. See the release notes for more information.

Kind regards, Worldline support team