-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Tried upgrading from 1.4.9 to 3.7.0.
We were on 1.4.9 with a custom patch due to the PCI compliance issue that has been open here since Sep 15, 2023.
Expected results: API to work as normal.
Actual results: API does not work, throwing "ServicesConfig is not a constructor"
Steps to reproduce: Upgrade from 1.4.9 (working code) to 3.7.0.
Example Code:
const {
Address,
ServicesConfig,
ServicesContainer,
CreditCardData,
Transaction
} = require('globalpayments-api');
let servicesConfig = new ServicesConfig();
servicesConfig.secretApiKey = "REDACTED";
servicesConfig.developerId = "REDACTED";
servicesConfig.versionNumber = "REDACTED";
servicesConfig.serviceUrl = "https://api2.heartlandportico.com";
servicesConfig.enableLogging = false;
ServicesContainer.configure(servicesConfig);