UNPKG

@adyen/react-native

Version:

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

20 lines 921 B
import type { PaymentMethodsResponse, Configuration } from '../core'; /** * Shape of the AdyenCheckout context value. */ export interface AdyenCheckoutContextType { /** Start payment with Drop-in or any payment method available in `paymentMethods` collection. */ start: (typeName: string) => void; /** Configuration object. */ config: Configuration; /** Payment methods available for payment. */ paymentMethods?: PaymentMethodsResponse; /** True if the checkout is ready to be used. */ isReady: boolean; } export declare const AdyenCheckoutContext: import("react").Context<AdyenCheckoutContextType | null>; /** * Returns AdyenCheckout context. This context allows you to initiate payment with Drop-in or any payment method available in `paymentMethods` collection. */ export declare const useAdyenCheckout: () => AdyenCheckoutContextType; //# sourceMappingURL=useAdyenCheckout.d.ts.map