UNPKG

@adyen/react-native

Version:

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

46 lines (43 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DropInWrapper = void 0; var _ActionHandlingComponentWrapper = require("../base/ActionHandlingComponentWrapper"); /** * @internal * Interface for removing stored payment method. */ /** Native module interface specific to DropIn */ /** * Drop-in wrapper with full feature support. */ class DropInWrapper extends _ActionHandlingComponentWrapper.ActionHandlingComponentWrapper { name = 'DropIn'; getReturnURL() { return this.nativeModule.getReturnURL(); } removeStored(success) { this.nativeModule.removeStored(success); } update(results) { this.nativeModule.update(results); } confirm(address) { this.nativeModule.confirm(true, address); } reject(error) { this.nativeModule.confirm(false, error); } provideBalance(success, balance, error) { this.nativeModule.provideBalance(success, balance, error); } provideOrder(success, order, error) { this.nativeModule.provideOrder(success, order, error); } providePaymentMethods(paymentMethods, order) { this.nativeModule.providePaymentMethods(paymentMethods, order); } } exports.DropInWrapper = DropInWrapper; //# sourceMappingURL=DropInWrapper.js.map