Closed Ruud-cb closed 5 years ago
I'm not with Adyen, but note that adyen-cse-js
is not an official publication of this lib.
The official NPM pkg is https://www.npmjs.com/package/adyen-cse-web, but it states this lib is deprecated.
Yeah well this npm package does not mention deprecation. And secure fields does not work well with SPAs.
I could workaround this issue by including the .js file in my project and then do it like this in my component:
var adyenEncrypt = (<any>window).adyen.encrypt;
Adyen team: I hope you can manage to upgrade this package again so that it is perfectly compatible with the most common front-end framworks. If you think secure fields works better then perhaps it is useful to write some more dev-tutorials.
Hi,
I am getting the following Warning when building my angular app for production:
Although it is a warning, it does produce an error in production (my CI for example doesn't like it). According to your documentation you suggest importing with require, but I cannot do this because of the following error when I do so:
So it basically enforces me to write it like this:
import * as adyenEncrypt from 'adyen-cse-js';
Could you please update your lib? Googling on the issue gives quite a few of potential fixes.