UNPKG

@adyen/react-native

Version:

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

45 lines (41 loc) 1.42 kB
"use strict"; import { Event } from '../../core'; import { ActionHandlingComponentWrapper } from '../base/ActionHandlingComponentWrapper'; /** * @internal * Interface for removing stored payment method. */ /** Native module interface specific to DropIn */ /** * Drop-in wrapper with full feature support. * Supports: BIN events, address lookup, partial payments, stored payment management. */ export class DropInWrapper extends ActionHandlingComponentWrapper { static events = [Event.onBinValue, Event.onBinLookup, Event.onDisableStoredPaymentMethod, Event.onAddressConfirm, Event.onAddressUpdate, Event.onCheckBalance, Event.onRequestOrder, Event.onCancelOrder]; 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); } } //# sourceMappingURL=DropInWrapper.js.map