@abdelrahman.rabie/payment-sdk-react-native
Version:
React Native SDK for payment processing with E_API and E_LINKS support
15 lines (14 loc) • 501 B
TypeScript
import { PaymentSDK } from '../core/PaymentSDK';
import { IApplePayResponse } from '../types/payment.types';
export interface UseApplePayProps {
sdk: PaymentSDK;
}
export interface UseApplePayReturn {
loading: boolean;
error: string | null;
applePaySession: IApplePayResponse | null;
validateMerchant: (validationURL: string) => Promise<void>;
clearError: () => void;
reset: () => void;
}
export declare const useApplePay: ({ sdk }: UseApplePayProps) => UseApplePayReturn;