merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 8782d4352ee6bd7f2a5acafe3c8b28fa969e946f
parent 4184067ee8c95e3d1590100cf3cff42334987f6e
Author: Florian Dold <florian.dold@gmail.com>
Date:   Wed,  2 Mar 2016 04:28:05 +0100

rename event

Diffstat:
Mexamples/blog/essay_cc-form.html | 10+++++++---
Mexamples/shop/checkout.php | 8++++++--
2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/examples/blog/essay_cc-form.html b/examples/blog/essay_cc-form.html @@ -26,9 +26,13 @@ </form> </section> <script type="application/javascript"> - 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, + replace_navigation: true + } + }); document.dispatchEvent(cEvent); }; diff --git 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); };