adyen-node-api-library icon indicating copy to clipboard operation
adyen-node-api-library copied to clipboard

Compatibility with edge runtimes (Web API)

Open typeofweb opened this issue 1 year ago • 1 comments

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

typeofweb avatar May 07 '23 14:05 typeofweb

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

wboereboom avatar Jul 04 '23 13:07 wboereboom