@pelcro/react-pelcro-js 3.26.0-beta.25 → 3.26.0-beta.26

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
@@ -21416,13 +21416,16 @@ const ApplePayButton = _ref => {
21416
21416
  }
21417
21417
  };
21418
21418
  const orderId = `pelcro-${new Date().getTime()}`;
21419
+ const eProtectRequestPreLiveURL = "https://request.eprotect.vantivprelive.com";
21420
+ const eProtectRequestProductionURL = "https://request.eprotect.vantivcnp.com";
21421
+ const eProtectRequestUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? eProtectRequestProductionURL : eProtectRequestPreLiveURL;
21419
21422
  const eProtectRequest = {
21420
21423
  paypageId: payPageId,
21421
21424
  reportGroup: reportGroup,
21422
21425
  orderId: orderId,
21423
21426
  id: orderId,
21424
21427
  applepay: applePayToken,
21425
- url: "https://request.eprotect.vantivprelive.com"
21428
+ url: eProtectRequestUrlToUse
21426
21429
  };
21427
21430
 
21428
21431
  // successCallback function to handle the response from WorldPay.
package/dist/index.esm.js CHANGED
@@ -21386,13 +21386,16 @@ const ApplePayButton = _ref => {
21386
21386
  }
21387
21387
  };
21388
21388
  const orderId = `pelcro-${new Date().getTime()}`;
21389
+ const eProtectRequestPreLiveURL = "https://request.eprotect.vantivprelive.com";
21390
+ const eProtectRequestProductionURL = "https://request.eprotect.vantivcnp.com";
21391
+ const eProtectRequestUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? eProtectRequestProductionURL : eProtectRequestPreLiveURL;
21389
21392
  const eProtectRequest = {
21390
21393
  paypageId: payPageId,
21391
21394
  reportGroup: reportGroup,
21392
21395
  orderId: orderId,
21393
21396
  id: orderId,
21394
21397
  applepay: applePayToken,
21395
- url: "https://request.eprotect.vantivprelive.com"
21398
+ url: eProtectRequestUrlToUse
21396
21399
  };
21397
21400
 
21398
21401
  // 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.26.0-beta.25",
4
+ "version": "3.26.0-beta.26",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",