diff --git a/Belevo_Bezahl_Modul/module.php b/Belevo_Bezahl_Modul/module.php index 6710958..29eaa51 100644 --- a/Belevo_Bezahl_Modul/module.php +++ b/Belevo_Bezahl_Modul/module.php @@ -71,7 +71,8 @@ class Belevo_Bezahl_Modul extends IPSModule }); document.getElementById('reservate-button').addEventListener('click', function() { - paymentRequest.show(); + // Show the payment request button + document.getElementById('payment-request-button').style.display = 'block'; }); document.getElementById('get-amount-button').addEventListener('click', function() { @@ -94,7 +95,7 @@ class Belevo_Bezahl_Modul extends IPSModule }; }); - paymentRequest.on('token', function(ev) { + paymentRequest.on('paymentmethod', function(ev) { // Token an den Server senden var xhr = new XMLHttpRequest(); xhr.open('POST', '/api/'); diff --git a/library.json b/library.json index cb9a4b4..75b0490 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.021", + "version": "1.022", "build": 0, "date": 0 } \ No newline at end of file