UNPKG

@yeepay/yop-nodejs-sdk

Version:

YOP NodeJS SDK with TypeScript support

27 lines (26 loc) 912 B
export declare class CashierSupport { static CASHIER_URL: string; /** * Gets payment URL for cashier * @param privateKey - Private key for signing * @param appKey - Application key * @param merchantNo - Merchant number * @param token - Token from order creation * @returns Payment URL */ static getPayUrl(privateKey: string, appKey: string, merchantNo: string, token: string): string; /** * Gets canonical parameters string * @param params - Parameters to canonicalize * @returns Canonical parameters string */ static getCanonicalParams(params?: Record<string, any>): string; /** * Signs a string using RSA-SHA256 * @param secretKey - Private key for signing * @param str - String to sign * @returns Signature */ static signature(secretKey: string, str: string): string; } export default CashierSupport;