UNPKG

@adyen/react-native

Version:

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

22 lines (19 loc) 712 B
"use strict"; import { PaymentComponentWrapper } from '../base/PaymentComponentWrapper'; /** Native module interface specific to ApplePay */ /** * Apple Pay wrapper - no additional events beyond inherited ones. * @todo add express payment events */ export class ApplePayWrapper extends 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.'); } } } //# sourceMappingURL=ApplePayWrapper.js.map