summaryrefslogtreecommitdiff
path: root/examples/shop/checkout.php
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-03-02 04:28:05 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-03-02 04:28:05 +0100
commit8782d4352ee6bd7f2a5acafe3c8b28fa969e946f (patch)
tree6418d7ce72912b934ffa6ca3ba0d992d02f86812 /examples/shop/checkout.php
parent4184067ee8c95e3d1590100cf3cff42334987f6e (diff)
downloadmerchant-8782d4352ee6bd7f2a5acafe3c8b28fa969e946f.tar.gz
merchant-8782d4352ee6bd7f2a5acafe3c8b28fa969e946f.tar.bz2
merchant-8782d4352ee6bd7f2a5acafe3c8b28fa969e946f.zip
rename event
Diffstat (limited to 'examples/shop/checkout.php')
-rw-r--r--examples/shop/checkout.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/shop/checkout.php b/examples/shop/checkout.php
index 9ed3cef9..fb70c9c4 100644
--- a/examples/shop/checkout.php
+++ b/examples/shop/checkout.php
@@ -130,8 +130,12 @@
/* This function is called from "taler_pay" after
we downloaded the JSON contract from the merchant.
We now need to pass it to the extension. */
-function handle_contract(json_contract) {
- var cEvent = new CustomEvent('taler-contract', { detail: json_contract });
+function handle_contract(contract_wrapper) {
+ var cEvent = new CustomEvent('taler-confirm-contract', {
+ detail: {
+ contract_wrapper: contract_wrapper
+ }
+ });
document.dispatchEvent(cEvent);
};