@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
15 lines (14 loc) • 501 B
JavaScript
;
import { Event } from '../../core';
import { ModuleWrapper } from './ModuleWrapper';
/**
* Wrapper for payment components that can open a payment flow.
* Supports: onSubmit event (in addition to inherited onError, onComplete).
*/
export class PaymentComponentWrapper extends ModuleWrapper {
static events = [Event.onSubmit];
open(paymentMethods, configuration) {
this.nativeModule.open(paymentMethods, configuration);
}
}
//# sourceMappingURL=PaymentComponentWrapper.js.map