Cyberource - Can you reference the microform minified file to create a token?

I am currently trying to reference the functionality from this js file

https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js

I am trying to reference this functionality so that I can mimic the token generation. When i tried to use the eval function, it returned true in the console and it errors out when I try to reference any of this functionlaity. What am I missing?

Great question. :+1: Many stumble upon this issue.

After you have used eval() you can use this.FLEX.

So this would be something like:

this.FLEX.microform

I am not familiar with this library, but the code looks a bit complicated due to the nested callbacks.

Good luck.

1 Like