diff options
Diffstat (limited to 'examples/blog')
-rw-r--r-- | examples/blog/essay_cc-form.html | 11 | ||||
-rw-r--r-- | examples/blog/essay_fulfillment.php | 2 | ||||
m--------- | examples/blog/web-common | 0 |
3 files changed, 2 insertions, 11 deletions
diff --git a/examples/blog/essay_cc-form.html b/examples/blog/essay_cc-form.html index c4f3418d..9cebb33c 100644 --- a/examples/blog/essay_cc-form.html +++ b/examples/blog/essay_cc-form.html @@ -21,6 +21,7 @@ <html> <head> <link rel="stylesheet" type="text/css" href="web-common/style.css"> + <link rel="stylesheet" type="text/css" href="web-common/taler-wallet-lib.js"> </head> <body style="display:none;" lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <header> @@ -114,16 +115,6 @@ false); timer = window.setTimeout(handleTimeout, 250); - - function executePayment(H_contract, pay_url, offering_url) { - var detail = { - H_contract: H_contract, - pay_url: pay_url, - offering_url: offering_url - }; - var eve = new CustomEvent('taler-execute-payment', {detail: detail}); - document.dispatchEvent(eve); - } </script> <script type="application/javascript" src="web-common/taler-presence.js"></script> diff --git a/examples/blog/essay_fulfillment.php b/examples/blog/essay_fulfillment.php index 17956418..b710621d 100644 --- a/examples/blog/essay_fulfillment.php +++ b/examples/blog/essay_fulfillment.php @@ -79,7 +79,7 @@ $hc = json_decode($resp->body->toString(), true)['H_contract']; $my_payment['hc'] = $hc; log_string("sending payment event"); - $js_code = "executePayment(\"$hc\", \"$pay_url\", \"$offering_url\");"; + $js_code = "taler.executePayment(\"$hc\", \"$pay_url\", \"$offering_url\");"; $cc_page = template("./essay_cc-form.html", array('article' => $article, 'jscode' => $js_code)); echo $cc_page; return; diff --git a/examples/blog/web-common b/examples/blog/web-common -Subproject f96b0ebfeb0bf57a432693eedd85d9fb708a9e5 +Subproject 461b502d3ce0547dc8c70bdc3d5da0337eab533 |