summaryrefslogtreecommitdiff
path: root/src/frontend/checkout.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/checkout.php')
-rw-r--r--src/frontend/checkout.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/frontend/checkout.php b/src/frontend/checkout.php
index 72e78944..ab1c2c28 100644
--- a/src/frontend/checkout.php
+++ b/src/frontend/checkout.php
@@ -76,9 +76,7 @@
pass it to the extension */
function handle_contract(json_contract)
{
- var cEvent = new CustomEvent('taler-contract',
- { detail: json_contract,
- target: "/taler/pay"});
+ var cEvent = new CustomEvent('taler-contract', { detail: json_contract });
document.body.dispatchEvent(cEvent);
};
@@ -89,7 +87,7 @@ function handle_contract(json_contract)
function taler_pay(form)
{
var contract_request = new XMLHttpRequest();
- contract_request.open("POST", "/generate_taler_contract.php", true);
+ contract_request.open("GET", "/generate_taler_contract.php", true);
contract_request.onload = function (e)
{
if (contract_request.readyState == 4)