d
This commit is contained in:
@@ -37,7 +37,7 @@ class Belevo_Bezahl_Modul extends IPSModule
|
||||
<button onclick="getAmount()">Get Amount</button>
|
||||
<div id="payment-request-button"></div>
|
||||
<script>
|
||||
var stripe = Stripe("' . $apiKey . '");
|
||||
var stripe = Stripe("pk_test_51Qkr79LJAcsNrpivA90lt7ULEzyXKR8l0pAqTBgfeuAIWlsLS4A3BdIBITc9UooFANbImvlJQ2F2jOZ0X5j8GI7Q00hNNasvQm");
|
||||
var elements = stripe.elements();
|
||||
var paymentRequest = stripe.paymentRequest({
|
||||
country: "CH",
|
||||
@@ -63,6 +63,7 @@ class Belevo_Bezahl_Modul extends IPSModule
|
||||
});
|
||||
|
||||
function reservateAmount() {
|
||||
paymentRequest.show();
|
||||
paymentRequest.on("token", function(ev) {
|
||||
// Send the token to your server to charge it!
|
||||
var xhr = new XMLHttpRequest();
|
||||
@@ -106,7 +107,7 @@ class Belevo_Bezahl_Modul extends IPSModule
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>';
|
||||
</html>';
|
||||
|
||||
SetValue($this->ReadPropertyInteger("HTMLBox"), $html); // Baut das HTML auf
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "1.017",
|
||||
"version": "1.018",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user