@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
20 lines (19 loc) • 680 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PaymentComponentWrapper = void 0;
var _core = require("../../core");
var _ModuleWrapper = require("./ModuleWrapper");
/**
* Wrapper for payment components that can open a payment flow.
* Supports: onSubmit event (in addition to inherited onError, onComplete).
*/
class PaymentComponentWrapper extends _ModuleWrapper.ModuleWrapper {
static events = [_core.Event.onSubmit];
open(paymentMethods, configuration) {
this.nativeModule.open(paymentMethods, configuration);
}
}
exports.PaymentComponentWrapper = PaymentComponentWrapper;
//# sourceMappingURL=PaymentComponentWrapper.js.map