adyen-node-api-library
adyen-node-api-library copied to clipboard
Compatibility with edge runtimes (Web API)
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
- https://wintercg.org/
- https://vercel.com/docs/concepts/functions/edge-functions/edge-runtime
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