summaryrefslogtreecommitdiff
path: root/examples/shop/checkout.php
diff options
context:
space:
mode:
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);
};