redsys-connect
Version:
A simple and secure NPM package to integrate the RedSys payment gateway with modern web technologies like React, Next.js, and Angular.
24 lines (17 loc) • 815 B
TypeScript
interface MerchantParams {
amount: string;
currency: string;
merchantCode: string;
merchantUrl: string;
order: string;
terminal: string;
transactionType: string;
urlPaymentDenied: string;
urlPaymentSuccess: string;
}
declare function createMerchantParameters(params: MerchantParams): string;
declare function createMerchantSignature(params: MerchantParams, merchantBase64: string, merchantKey: string): string;
declare function orderNumber(): string;
declare function generatePaymentForm(merchantParams: MerchantParams, claveComercio: string, dev: boolean, submitText?: string): string;
declare const signatureVersion = "HMAC_SHA256_V1";
export { type MerchantParams, createMerchantParameters, createMerchantSignature, generatePaymentForm, orderNumber, signatureVersion };