UNPKG

@abdelrahman.rabie/payment-sdk-react-native

Version:

React Native SDK for payment processing with E_API and E_LINKS support

32 lines (31 loc) 1.22 kB
import { IPaymentSDKConfig, EPaymentProduct, IRequestPaymentPayload, IPaymentResult, IEAPIPaymentInfoResponse, IELINKSPaymentInfoResponse, IApplePayResponse } from '../types/payment.types'; export declare class PaymentSDK { private httpClient; private paymentService; private config; constructor(config: IPaymentSDKConfig); /** * Initialize payment info */ initializePayment(product: EPaymentProduct, paymentToken: string): Promise<IEAPIPaymentInfoResponse | IELINKSPaymentInfoResponse>; /** * Execute payment */ executePayment(product: EPaymentProduct, paymentToken: string, payload: IRequestPaymentPayload): Promise<IPaymentResult>; /** * Get payment status/details */ getPaymentStatus(product: EPaymentProduct, paymentToken: string): Promise<IEAPIPaymentInfoResponse | IELINKSPaymentInfoResponse>; /** * Validate Apple Pay merchant for Apple Pay payments */ validateApplePayMerchant(validationURL: string): Promise<IApplePayResponse>; /** * Update SDK configuration */ updateConfig(newConfig: Partial<IPaymentSDKConfig>): void; /** * Get current configuration */ getConfig(): IPaymentSDKConfig; }