@comicrelief/component-library 7.23.3 → 7.23.4

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.
@@ -19,12 +19,7 @@ var handleSubmission = function handleSubmission(amount, donateLink, cartID, row
19
19
  var thisMatch = currentpageUrl.match(reg)[0];
20
20
  currentpageUrl = currentpageUrl.substring(0, currentpageUrl.indexOf(thisMatch));
21
21
  }
22
-
23
- // - Q: do we need client IDs? A: 99% of examples just use 'donate' (or 'test' for staging)
24
- //
25
- // - I guess we still need rowID for the back-browsing scroll stuff?
26
- // - TO-DO: add in said scroll stuff
27
- var forwardingUrl = "".concat(donateLink, "/?cartID=").concat(cartID, "&amount=").concat(amount, "&clientOverride=donate&currency=GBP&givingType=single&affiliate=").concat(affiliateValue, "&siteurl=").concat(currentpageUrl, "&rowID=").concat(rowID);
22
+ var forwardingUrl = "".concat(donateLink, "/?cartId=").concat(cartID, "&amount=").concat(amount, "&clientOverride=donate&currency=GBP&givingType=single&affiliate=").concat(affiliateValue, "&siteurl=").concat(currentpageUrl, "&rowID=").concat(rowID);
28
23
  window.location.href = forwardingUrl;
29
24
  };
30
25
  var _default = exports.default = handleSubmission;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "7.23.3",
4
+ "version": "7.23.4",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -20,11 +20,7 @@ const handleSubmission = (amount, donateLink, cartID, rowID) => {
20
20
  currentpageUrl = currentpageUrl.substring(0, currentpageUrl.indexOf(thisMatch));
21
21
  }
22
22
 
23
- // - Q: do we need client IDs? A: 99% of examples just use 'donate' (or 'test' for staging)
24
- //
25
- // - I guess we still need rowID for the back-browsing scroll stuff?
26
- // - TO-DO: add in said scroll stuff
27
- const forwardingUrl = `${donateLink}/?cartID=${cartID}&amount=${amount}&clientOverride=donate&currency=GBP&givingType=single&affiliate=${affiliateValue}&siteurl=${currentpageUrl}&rowID=${rowID}`;
23
+ const forwardingUrl = `${donateLink}/?cartId=${cartID}&amount=${amount}&clientOverride=donate&currency=GBP&givingType=single&affiliate=${affiliateValue}&siteurl=${currentpageUrl}&rowID=${rowID}`;
28
24
 
29
25
  window.location.href = forwardingUrl;
30
26
  };