UNPKG

@adyen/react-native

Version:

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

25 lines (21 loc) 652 B
"use strict"; 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); } } exports.AdyenCSEWrapper = AdyenCSEWrapper; //# sourceMappingURL=AdyenCSEModuleWrapper.js.map