To Validate Card Capture form you should trigger validate event.
This validation method can be used to get validity from state from your js code. With this you can build workflows on your side based on this information. For example, you can prevent form submission if the card in the iframe is not valid.
This validation also triggers on submit event and does the same validations as you can see in real time. So, if you don't have any external logic which is based on card form validity state you can just use the "submit" method.
Handle response
To handle responses from Card Capture Form you should create listener function.
Validate response
Submit response
IFrame configuration
Accepted card types
Param: only|except
Value: list of card types
Default: none
You can pass additional query param for card capture iframe and configure which cards you accept. This can be done in two ways.
You can set a list of cards you accept and only these cards would be allowed to be created from an iframe.
You can provide a list of cards you want to exclude, for example American Express.
To configure the list of card types you want to accept you should provide a only query param with a list of card types.
Example to accept only visa and mastercard:
To accept all cards except some specific type you should provide except query params with list of card types.
Example to exclude American Express:
List of card types:
visa
mastercard
american-express
money-club
discover
jcb
unionpay
maestro
link
me
hyper
hypercard
So if you want just to accept all cards except American Express you need to modify your card capture iframe url to something like this
Custom styles
Param: style
Value: style name
Default: none
Card capture iframe can be customized with your own css to match your needed look and feel. To load additional css styles you need to provide style query param with styles name. These styles can be added to your account by contacting support.
Language
Param: lang
Value: en|ru
Default: en
To change language of your capture form lang query param needed to be specified.
Supported languages:
de
en
el
es
is
it
pt
ru
Any additional language can be added by contacting support.