Thanks so much for your payment.
For your own records, the details of your purchase are as follows:
Item:
Payment Date:
Payment Amount:
As mentioned, we have partnered with Stripe Payments in order to keep your payment fully secure.

You will have received a separate receipt to your email. If you have any questions, please feel free to contact us at your convenience.
Thanks again
Rachel,
Accounts Team,
Corporate Governance Institute.
Email me at [email protected].
/* PayPal Receipt section elements to be replaced by URL paramter values */
const studentNameEl = document.getElementById('customer-name');
const studentEmailEl = document.getElementById('customer-email');
const itemNameEl = document.getElementById('item-name');
const paymentDateEl = document.getElementById('payment-date');
const paymentAmountEl = document.getElementById('payment-amount');
/* Receipt Section Elements */
const paypalReceiptSection = document.getElementById('paypal-receipt-section');
const stripeReceiptSection = document.getElementById('stripe-receipt-section');
/* Create new URL object so that paramters can be taken from it */
var currentUrl = window.location.href;
var url = new URL(currentUrl);
var paypalFormIdParameter = url.searchParams.get("PayerID");
if(paypalFormIdParameter) {
/* Custom value parameter to JSON object */
var customParameter = url.searchParams.get("custom");
var customParamterObject = JSON.parse(customParameter);
/* Get values of parameters passed in */
var studentName = customParamterObject.sName;
var studentEmail = customParamterObject.sEmail;
var paymentDate = url.searchParams.get("payment_date");
var itemName = url.searchParams.get("item_name");
var amountPaid = url.searchParams.get("mc_gross");
var currencyUsed = url.searchParams.get("mc_currency");
/* Place text from URL parameters into PayPal Receipt sectiomn */
studentNameEl.innerText = studentName;
studentEmailEl.innerText = studentEmail;
itemNameEl.innerText = itemName;
paymentDateEl.innerText = paymentDate;
paymentAmountEl.innerText = `${amountPaid} ${currencyUsed}`;
/* Switch visibility of two forms */
paypalReceiptSection.style.display = 'block';
stripeReceiptSection.style.display = 'none';
}