@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
26 lines (24 loc) • 871 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ApplePayWrapper = void 0;
var _PaymentComponentWrapper = require("../base/PaymentComponentWrapper");
/** Native module interface specific to ApplePay */
/**
* Apple Pay wrapper - no additional events beyond inherited ones.
* @todo add express payment events
*/
class ApplePayWrapper extends _PaymentComponentWrapper.PaymentComponentWrapper {
name = 'ApplePay';
isAvailable(paymentMethods, configuration) {
return this.nativeModule.isAvailable(paymentMethods, configuration);
}
handle(_action) {
if (__DEV__) {
console.warn('ApplePayWrapper.handle() was called, but Apple Pay does not support action handling. ' + 'This is likely a bug in your integration.');
}
}
}
exports.ApplePayWrapper = ApplePayWrapper;
//# sourceMappingURL=ApplePayWrapper.js.map