UNPKG

@adyen/react-native

Version:

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

42 lines (38 loc) 1.09 kB
"use strict"; 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. */ export class DropInWrapper extends 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); } } //# sourceMappingURL=DropInWrapper.js.map