redsys-easy
Version:
Node JS interface for Redsys payment gateway
9 lines (8 loc) • 444 B
TypeScript
import type { fetch as Fetch } from 'undici';
import type { CommonRawRequestParams, CommonRawResponseParams } from '../types/api';
export declare const jsonRequest: <RequestParams extends CommonRawRequestParams, ResponseParams extends CommonRawResponseParams>({ fetch, url, merchantKey, rawRequestParams }: {
fetch: typeof Fetch;
url: string;
merchantKey: string;
rawRequestParams: RequestParams;
}) => Promise<ResponseParams>;