iFrame Functions
info
BIN lookup is a subscription service. Contact [email protected] or [email protected] to gain access to our BIN lookup product.
The TokenEx iFrame library exposes the following functions:
Load | Loads the iFrame and adds it to the DOM |
Focus | Set the focus of the page to the input element within the iFrame |
Blur | Remove focus from the input element within the iFrame |
CvvFocus | Set the focus of the page to the CVV input element within the iFrame |
CvvBlur | Remove focus from the CVV input element within the iFrame |
Reset | Restore iFrame contents to initial state |
Remove | Remove iFrame from the DOM |
Validate | Invokes validation routines on the contents of the iFrame |
Tokenize | Validates and tokenizes the contents of the iFrame (if validations succeed) |
ValidateConfig | Outputs whether the config passed in to the iframe instance is valid |
BinLookup | Invoke Bin Lookup and output the response |
SetPAN | Inserts a value into the iFrame input element |
JavaScript
iframe.load();
iframe.focus();
iframe.blur();
iframe.cvvFocus();
iframe.cvvBlur();
iframe.reset();
iframe.remove();
iframe.validate();
iframe.tokenize();
iframe.validateConfig();
iframe.binLookup();
iframe.setPAN("5454545454545454");