method CartMandateClass.prototype.sign
CartMandateClass.prototype.sign(
privateKey: string,
keyConfig?: Partial<JWTKeyConfig>,
merchantInfo: { merchantId: string; },
): Promise<void>

Sign mandate using JWT with merchant authorization Creates a JWT with cart hash for integrity verification

Parameters

privateKey: string
optional
keyConfig: Partial<JWTKeyConfig>
merchantInfo: { merchantId: string; }

Return Type

Promise<void>

Usage

import { CartMandateClass } from ".";