@oxyhq/services
Version:
Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀
27 lines • 892 B
TypeScript
import type React from 'react';
import type { BaseScreenProps } from '../navigation/types';
export type PaymentItem = {
type: 'product' | 'subscription' | 'service' | 'fee' | string;
name: string;
description?: string;
quantity?: number;
period?: string;
price: number;
currency?: string;
};
export interface PaymentGatewayResult {
success: boolean;
details?: Record<string, string | number | boolean | null>;
error?: string;
}
interface PaymentGatewayScreenProps extends BaseScreenProps {
onPaymentResult?: (result: PaymentGatewayResult) => void;
amount: string | number;
currency?: string;
onClose?: () => void;
paymentItems?: PaymentItem[];
description?: string;
}
declare const PaymentGatewayScreen: React.FC<PaymentGatewayScreenProps>;
export default PaymentGatewayScreen;
//# sourceMappingURL=PaymentGatewayScreen.d.ts.map