@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
40 lines (33 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AdyenCSEWrapper = void 0;
/** Native module interface specific to CSE */
class AdyenCSEWrapper {
constructor(nativeModule) {
this.nativeModule = nativeModule;
}
/** Method to encrypt card. */
encryptCard(payload, publicKey) {
return this.nativeModule.encryptCard(payload, publicKey);
}
/** Method to encrypt BIN(first 6-11 digits of the card). */
encryptBin(payload, publicKey) {
return this.nativeModule.encryptBin(payload, publicKey);
}
/** Method to validate card number. */
validateCardNumber(cardNumber, enableLuhnCheck) {
return this.nativeModule.validateCardNumber(cardNumber, enableLuhnCheck);
}
/** Method to validate card expiry date. */
validateCardExpiryDate(expiryMonth, expiryYear) {
return this.nativeModule.validateCardExpiryDate(expiryMonth, expiryYear);
}
/** Method to validate card security code. */
validateCardSecurityCode(securityCode, cardBrand) {
return this.nativeModule.validateCardSecurityCode(securityCode, cardBrand);
}
}
exports.AdyenCSEWrapper = AdyenCSEWrapper;
//# sourceMappingURL=AdyenCSEModuleWrapper.js.map