UNPKG

ngx-loovpay

Version:

ngx-loovpay is a solution that can be integrated into Angular applications, giving developers the possibility of integrating them into merchant applications for the purpose of collecting payments.

60 lines (59 loc) 1.65 kB
export interface Config { app_key: string; merchant_key: string; loov_url: string; } export interface LoovResponse { error: boolean; status: string; amount: number; fees: number; message: string; reference: string; } export interface PaymentCard { amount: number; currency: 'XOF' | 'XAF'; payment_mode: 'CARD'; return_url: string; cancel_url: string; callback_url: string; description: string; customer: Custumer; } export interface PaymentMobile { amount: number; operator: 'orange-money-cm' | 'mtn-benin' | 'moov-benin' | 'mtn-cm' | 'mtn-ci' | 'moov-ci' | 'moov-ml' | 'orange-money-ml' | 'orange-money-senegal' | 'expresso-senegal' | 'free-money-senegal' | 'wave-senegal' | 't-money-togo'; phoneNumber: string; customer: Custumer; callback_url: string; payment_mode: 'MOBILE_MONEY'; description: string; } export interface LoovResponseError { code: string; status: boolean; message: string; success: boolean; error: LoovResponseError; } export interface Custumer { name: string; email: string; phoneNumber: string; } export interface CheckRefResponse { error: boolean; reference: any; amount: 500; currency: string; status: string; date: any; customer: any; } export interface PayOut { amount: number; operator: 'orange-money-cm' | 'mtn-benin' | 'moov-benin' | 'mtn-cm' | 'mtn-ci' | 'moov-ci' | 'moov-ml' | 'orange-money-ml' | 'orange-money-senegal' | 'expresso-senegal' | 'free-money-senegal' | 'wave-senegal' | 't-money-togo'; phoneNumber: string; currency: 'XAF' | 'XOF'; }