Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/utils/Membership.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-unused-vars */
/* eslint-disable max-len */
// this function prevent keyboard characters like e, + , - to be passed on the input
const onKeyPress = event => {
const keyCode = event.keyCode || event.which;
Expand Down Expand Up @@ -56,7 +58,12 @@ const handleDonateSubmission = (
}
const givingTypeUrl = givingType === 'single' ? 'single' : 'monthly';

window.location.href = `${donateLink}?clientOverride=${clientID}&amount=${amount}&currency=GBP&givingType=${givingTypeUrl}&cartId=${cartID}&affiliate=${affiliateValue}&siteurl=${currentpageUrl}&rowID=${mbshipID}`;

const forwardingURL = `${donateLink}?clientOverride=${clientID}&amount=${amount}&currency=GBP&givingType=${givingTypeUrl}&cartId=${cartID}&affiliate=${affiliateValue}&siteurl=${currentpageUrl}&rowID=${mbshipID}`;

console.log('UPDATE 7', currentpageUrl, 'affiliateValue', affiliateValue, 'forwardingURL', forwardingURL);

window.location.replace(forwardingURL);
};

export {
Expand Down