1 /* In the end, I couldn't get PayPal to send variables in a GET command.
3 // The customization of /donate/thanks can be tested using using /donate/thanks/test.
5 // Store the GET parameters returned by PayPal even before the page finished to launch
6 params = new URLSearchParams(document.location.search.substring(1));
8 // Hide the GET parameters returned by PayPal
9 window.history.replaceState(null, "donate", window.location.href.split('?')[0]);
11 document.addEventListener('DOMContentLoaded', function() {
12 if (params.has("first_name")) {
13 document.getElementById("name").innerHTML = params.get("first_name");