Adyen / adyen-node-api-library

Adyen API Library for Node.js
MIT License
98 stars 59 forks source link

Compatibility with edge runtimes (Web API) #1154

Open typeofweb opened 1 year ago

typeofweb commented 1 year ago

Is your feature request related to a problem? Please describe. I'd like to use adyen nodejs library in edge runtimes, for example Vercel (Next.js). Unfortunately, some functions in Adyen nodejs library cannot be used in edge runtimes. For instance, node:crypto package is not available and global crypto should be used instead.

Describe the solution you'd like Make sure all apis are compatible with edge runtimes (Web API).

Additional context

wboereboom commented 1 year ago

Hi @mmiszy , Thanks for requesting this feature. If I understand correctly, we would have to move to Node version greater than or equal to 19 in order to ensure a global crypto object is available.

This migration is currently not on our roadmap.

Is there any other way we can accommodate for the features you require?

Kind Regards, Wouter Adyen