registerCard(cardData, successCallback, errorCallback) {

			// Browser is not capable of making cross-origin Ajax calls
			if (!mangoPay.browser.corsSupport()) {
				errorCallback({
					"ResultCode": "009999",
					"ResultMessage": "Browser does not support making cross-origin Ajax calls"
				});
				return;
			}

			// Validate card data
			var isCardValid = mangoPay.cardRegistration._validateCardData(cardData);
			if (isCardValid !== true) {
				errorCallback(isCardValid);
				return;
			}

			// Try to register card in two steps: get Payline token and then finish card registration with MangoPay API
			mangoPay.cardRegistration._tokenizeCard(
				cardData,
				successCallback,
				errorCallback
			);
		}
/**
		 * Processes card registration and calls success or error callback
		 *
		 * @param {object} cardData Sensitive card details {cardNumber, cardType, cardExpirationDate, cardCvx}
		 * @param {function} successCallback A function to invoke when the card registration succeeds. It will receive CardRegistration object.
		 * @param {function} errorCallback A function to invoke when the the card registration fails. It will receive an error object {ResultCode, ResultMessage}.
		 */
Processes card registration and calls success or error callback
@param {object} cardData Sensitive card details {cardNumber, cardType, cardExpirationDate, cardCvx}
@param {function} successCallback A function to invoke when the card registration succeeds. It will receive CardRegistration object.
@param {function} errorCallback A function to invoke when the the card registration fails. It will receive an error object {ResultCode, ResultMessage}.
Processes card registration and calls success or error callback @param { object } cardData Sensitive card details { cardNumber cardType cardExpirationDate cardCvx } @param { function } successCallback A function to invoke when the card registration succeeds . It will receive CardRegistration object . @param { function } errorCallback A function to invoke when the the card registration fails . It will receive an error object { ResultCode ResultMessage } .
registerCard(cardData, successCallback, errorCallback) {
			if (!mangoPay.browser.corsSupport()) {
				errorCallback({
					"ResultCode": "009999",
					"ResultMessage": "Browser does not support making cross-origin Ajax calls"
				});
				return;
			}
			var isCardValid = mangoPay.cardRegistration._validateCardData(cardData);
			if (isCardValid !== true) {
				errorCallback(isCardValid);
				return;
			}
			mangoPay.cardRegistration._tokenizeCard(
				cardData,
				successCallback,
				errorCallback
			);
		}
registerCard ( cardData , successCallback , errorCallback ) { if ( ! mangoPay . browser . corsSupport ( ) ) { errorCallback ( { "ResultCode" : "009999" , "ResultMessage" : "Browser does not support making cross-origin Ajax calls" } ) ; return ; } var isCardValid = mangoPay . cardRegistration . _validateCardData ( cardData ) ; if ( isCardValid !== true ) { errorCallback ( isCardValid ) ; return ; } mangoPay . cardRegistration . _tokenizeCard ( cardData , successCallback , errorCallback ) ; }
Processes card registration and calls success or error callback
 @param {object} cardData Sensitive card details {cardNumber, cardType, cardExpirationDate, cardCvx}
 @param {function} successCallback A function to invoke when the card registration succeeds.
Processes card registration and calls success or error callback @param { object } cardData Sensitive card details { cardNumber cardType cardExpirationDate cardCvx } @param { function } successCallback A function to invoke when the card registration succeeds .
// Browser is not capable of making cross-origin Ajax calls // Validate card data // Try to register card in two steps: get Payline token and then finish card registration with MangoPay API