UNPKG

zips-react-native-sdk-test

Version:

Lightweight ZIPS Payment Gateway SDK for React Native - Complete payment solution with ZApp wallet payments and Access Bank integration

32 lines (31 loc) 1.24 kB
import { PaymentMethod } from '../constants/paymentMethods'; import { PaymentDetails, PaymentFlowStep } from '../types'; interface zipsContextType { isLoading: boolean; isPaid: boolean; error: any | null | string; order: any | null | undefined; paymentMethod: PaymentMethod; paymentDetails: PaymentDetails; environment: 'sandbox' | 'production'; transactionDetails?: any; apiKey?: string; currentStep?: PaymentFlowStep; setIsLoading: (isLoading: boolean) => void; setError: (error: string | null) => void; setOrder: (order: any) => void; setPaymentMethod: (paymentMethod: PaymentMethod) => void; setPaymentDetails: (paymentDetails: PaymentDetails) => void; setEnvironment: (environment: 'sandbox' | 'production') => void; setTransactionDetails: (transactionDetails: any) => void; setApiKey: (apiKey: string | undefined) => void; setZips: (zips: any | null) => void; setCurrentStep: (step: PaymentFlowStep) => void; setIsPaid: (isPaid: boolean) => void; } interface ZipsProviderProps { children: React.ReactNode; } export declare const useZipsContext: () => zipsContextType; export declare const ZipsProvider: React.FC<ZipsProviderProps>; export {};