Server : LiteSpeed System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64 User : u107206879 ( 107206879) PHP Version : 7.2.34 Disable Function : NONE Directory : /home/u107206879/domains/escort46.de/public_html/admin/santest/ |
<!DOCTYPE html>
<!-- secret key:da1bcddc2e1d488b83ac89db58afaec2 -->
<!-- Checkout key:b2f2f1b253a948f48f859421ed80e6fc -->
<html>
<head>
<title>Shopping Cart</title>
</head>
<body>
<h1>Shopping Cart</h1>
<button id="checkout-button">Proceed to Checkout</button>
<script type="text/javascript">
var button = document.getElementById('checkout-button');
button.addEventListener('click', function () {
var request = new XMLHttpRequest();
// create-payment.php is implemented in Step 2
request.open('GET', 'create-payment.php', true);
request.onload = function () {
const data = JSON.parse(this.response); // If parse error, check output
if (!data.paymentId) { // from create-payment.php
console.error('Error: Check output from create-payment.php');
return;
}
console.log(this.response);
// checkout.html is implemented in Step 3
window.location = 'checkout.html?paymentId=' + data.paymentId;
}
request.onerror = function () { console.error('connection error'); }
request.send();
});
</script>
</body>
</html>