merchant

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

commit 3f3da5006eb32fa99da054b005adf42c6644d4a5
parent 98c477b5517f830629d12b6a5f71613fdfc31aa5
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Thu, 22 Oct 2015 18:42:16 +0200

Adding specification of the custom "pay" URL inside the object
sent along the 'contract' event.

Diffstat:
Msrc/frontend/checkout.php | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/frontend/checkout.php b/src/frontend/checkout.php @@ -76,7 +76,10 @@ pass it to the extension */ function handle_contract(json_contract) { - var cEvent = new CustomEvent('taler-contract', { 'detail' : json_contract }); + var cEvent = new CustomEvent('taler-contract', + { detail: json_contract, + target: "/taler/pay"}); + document.body.dispatchEvent(cEvent); };