From cf7aa082b8eac048e1ff0192a5de37ec947d0cf3 Mon Sep 17 00:00:00 2001 From: Willy Schwindt Date: Tue, 20 Aug 2024 17:08:54 -0300 Subject: [PATCH] Handle gateway error with code and message params --- src/Gateways/PorticoConnector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/PorticoConnector.ts b/src/Gateways/PorticoConnector.ts index 4f2f4d6d..0d230578 100644 --- a/src/Gateways/PorticoConnector.ts +++ b/src/Gateways/PorticoConnector.ts @@ -1150,7 +1150,7 @@ export class PorticoConnector extends XmlGateway implements IPaymentGateway { if (acceptedCodes.indexOf(gatewayRspCode) === -1) { throw new GatewayError( - `Unexpected Gateway Response: ${gatewayRspCode} - ${gatewayRspText}`, + 'Unexpected Gateway Response', gatewayRspCode, gatewayRspText ); }