no message
This commit is contained in:
@@ -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
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user