voko-sdk
Version:
Process payments with ease
67 lines (66 loc) • 1.73 kB
TypeScript
import { BankOperator, MobileOperator } from '../../core/types';
export interface AzampayTokenRequest {
appName: string | undefined;
clientId: string;
clientSecret: string;
}
export interface AzampayTokenResponse {
data: {
data: {
accessToken: string;
expire: string;
};
message: string;
success: boolean;
statusCode: number;
};
}
export interface AzampayBankPaymentRequest {
additionalProperties: Record<string, any>;
amount: number;
currencyCode: string;
merchantAccountNumber: string | undefined;
merchantMobileNumber: string | undefined;
merchantName: string;
otp: string | undefined;
provider: BankOperator;
referenceId: string;
}
export interface AzampayMnoPaymentRequest {
accountNumber: string | undefined;
additionalProperties: Record<string, any>;
amount: number;
currency: string;
externalId: string;
provider: MobileOperator;
}
export interface AzampayPaymentResponse {
transactionId: string;
message: string;
success: boolean;
}
export interface AzampayStatusRequest {
check_status: number;
order_id: string;
api_key: string;
secret_key: string;
}
export interface AzampayStatusResponse {
status: 'error' | 'success';
message: string;
order_id: string;
payment_status: string;
amount: number;
}
export interface AzampayWebhookPayload {
additionalProperties: Record<string, any>;
msisdn: string;
amount: string;
message: string;
utilityref: string;
operator: MobileOperator | BankOperator;
reference: string;
transactionstatus: string;
submerchantAcc: string;
fspReferenceId: string;
}