paynl / nodejs-sdk

Pay.nl nodejs sdk
6 stars 7 forks source link

Configuration without singletons for multiple merchant support #11

Closed SimonBackx closed 4 years ago

SimonBackx commented 4 years ago

Because of the singletons in the code, it is impossible to use the library if you need to process payments for multiple submerchants. Would it be possible to add some kind of class based configurations instead of singletons?

woutse commented 4 years ago

Thanks for your message. Maybe. We'll have to look into this, but this might take a while. You are of course free to make changes yourself and you can add a pullrequest if you'd like.