You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const
{
Address,
CreditCardData,
ServicesContainer,
HostedPaymentConfig,
GpEcomConfig,
Transaction
} = require('globalpayments-api');
...
const config = new GpEcomConfig(); //might need to use another config class, this is what we use with realex
... config stuff
ServicesContainer.configureService(config);
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);
The text was updated successfully, but these errors were encountered: