@pelcro/react-pelcro-js 3.30.0 → 3.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -20446,13 +20446,16 @@ const ApplePayButton = _ref => {
20446
20446
  }
20447
20447
  };
20448
20448
  const orderId = `pelcro-${new Date().getTime()}`;
20449
+ const eProtectRequestPreLiveURL = "https://request.eprotect.vantivprelive.com";
20450
+ const eProtectRequestProductionURL = "https://request.eprotect.vantivcnp.com";
20451
+ const eProtectRequestUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? eProtectRequestProductionURL : eProtectRequestPreLiveURL;
20449
20452
  const eProtectRequest = {
20450
20453
  paypageId: payPageId,
20451
20454
  reportGroup: reportGroup,
20452
20455
  orderId: orderId,
20453
20456
  id: orderId,
20454
20457
  applepay: applePayToken,
20455
- url: "https://request.eprotect.vantivprelive.com"
20458
+ url: eProtectRequestUrlToUse
20456
20459
  };
20457
20460
 
20458
20461
  // successCallback function to handle the response from WorldPay.
package/dist/index.esm.js CHANGED
@@ -20416,13 +20416,16 @@ const ApplePayButton = _ref => {
20416
20416
  }
20417
20417
  };
20418
20418
  const orderId = `pelcro-${new Date().getTime()}`;
20419
+ const eProtectRequestPreLiveURL = "https://request.eprotect.vantivprelive.com";
20420
+ const eProtectRequestProductionURL = "https://request.eprotect.vantivcnp.com";
20421
+ const eProtectRequestUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? eProtectRequestProductionURL : eProtectRequestPreLiveURL;
20419
20422
  const eProtectRequest = {
20420
20423
  paypageId: payPageId,
20421
20424
  reportGroup: reportGroup,
20422
20425
  orderId: orderId,
20423
20426
  id: orderId,
20424
20427
  applepay: applePayToken,
20425
- url: "https://request.eprotect.vantivprelive.com"
20428
+ url: eProtectRequestUrlToUse
20426
20429
  };
20427
20430
 
20428
20431
  // successCallback function to handle the response from WorldPay.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.30.0",
4
+ "version": "3.31.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",