UNPKG

nasspay

Version:

TypeScript/JavaScript SDK for integrating with the Nass Merchant Payment Gateway. Supports both Portal and Direct API integration methods with comprehensive type definitions.

11 lines (10 loc) 531 B
import { NassErrorResponse } from "./types"; import { AxiosError } from "axios"; export declare const UAT_BASE_URL_PORTAL = "https://uat-gateway.nass.iq:9746/"; export declare const UAT_BASE_URL_DIRECT_API_TRANSACTION_PROCESSING = "https://3dsecure.nass.iq/cgi-bin/cgi_json"; /** * Handles Axios errors and extracts relevant error information. * @param error The AxiosError object. * @returns An Error object with a descriptive message. */ export declare function handleAxiosError(error: AxiosError<NassErrorResponse>): Error;