@fawry_pay/rn-fawry-pay-sdk
Version:
This is the only official Fawrypay SDK package for React Native
46 lines • 1.42 kB
TypeScript
import { NativeEventEmitter } from 'react-native';
export declare function startPayment(fawryLaunchModel: FawryLaunchModel): Promise<any>;
export declare function openCardsManager(baseUrl: string, lang: FawryLanguages, merchantInfo: MerchantInfo, customerInfo: CustomerInfo): Promise<any>;
export interface BillItems {
itemId: string;
description: string;
quantity: string;
price: string;
}
export interface MerchantInfo {
merchantCode: string;
merchantSecretCode: string;
merchantRefNum: string;
}
export interface CustomerInfo {
customerName: string;
customerMobile: string;
customerEmail: string;
customerProfileId: string;
}
export interface FawryLaunchModel {
baseUrl: string;
lang: FawryLanguages;
merchantInfo: MerchantInfo;
customerInfo: CustomerInfo;
items: BillItems[];
allow3DPayment: boolean;
skipReceipt: boolean;
skipLogin: boolean;
payWithCardToken: boolean;
authCaptureMode: boolean;
allowVoucher: boolean;
signature: string;
}
export declare enum FawryLanguages {
ENGLISH = "ENGLISH",
ARABIC = "ARABIC"
}
export declare class FawryCallbacks {
static FawryEmitter: NativeEventEmitter;
static FAWRY_EVENT_PAYMENT_COMPLETED: string;
static FAWRY_EVENT_ON_SUCCESS: string;
static FAWRY_EVENT_ON_FAIL: string;
static FAWRY_EVENT_CardManager_FAIL: string;
}
//# sourceMappingURL=index.d.ts.map