UNPKG

@adyen/react-native

Version:

Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native

35 lines (28 loc) 1.06 kB
"use strict"; /** Native module interface specific to CSE */ export 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); } } //# sourceMappingURL=AdyenCSEModuleWrapper.js.map