Using a browser-side Javascript in Nuxt
I am currently building a checkout with Mollie (similar to Stripe) as the overall payment provider.
In order to build an embedded checkout experience Mollie provides a few components to build your own checkout. These components need to be initialised by theirs browser-side Javascript library called Mollie.js.
What would be a good approach to use this library to render some fields, including their validation rules etc but still use the reactivity of Vue/Nuxt? The library also requires to use these values in one of their function to generate some random key. What would be a good approach to that?
Here is a link to the Mollie.js docs: https://docs.mollie.com/reference/mollie-js/overview
0 Replies