no message

This commit is contained in:
dh
2025-01-28 16:41:11 +01:00
parent 5cebc0f06e
commit 94b07554a2
2 changed files with 87 additions and 76 deletions
+19 -8
View File
@@ -24,15 +24,19 @@ class Belevo_Bezahl_Modul extends IPSModule
$html = "<html> $html = "<html>
<head> <head>
<script src=\"https://js.stripe.com/v3/\"></script>
</head>
<body>
<h1>Stripe Payment Request API Integration</h1>
<button id=\"reservate-button\">Reservate</button>
<button id=\"get-amount-button\">Get Amount</button>
<div id=\"payment-request-button\"></div>
<script> <script>
const stripeScript = document.createElement('script');
stripeScript.src = 'https://js.stripe.com/v3/';
stripeScript.onload = function() {
console.log('Stripe.js loaded successfully');
initializeStripe();
};
stripeScript.onerror = function() {
console.error('Failed to load Stripe.js');
};
document.head.appendChild(stripeScript);
function initializeStripe() {
const stripe = Stripe('$apiKey'); const stripe = Stripe('$apiKey');
const elements = stripe.elements(); const elements = stripe.elements();
@@ -103,7 +107,14 @@ class Belevo_Bezahl_Modul extends IPSModule
} }
}; };
}); });
}
</script> </script>
</head>
<body>
<h1>Stripe Payment Request API Integration</h1>
<button id=\"reservate-button\">Reservate</button>
<button id=\"get-amount-button\">Get Amount</button>
<div id=\"payment-request-button\"></div>
</body> </body>
</html>"; </html>";
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "1.023", "version": "1.024",
"build": 0, "build": 0,
"date": 0 "date": 0
} }