merchant

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

commit 6a63d026586f7cdd6aa3664ff68157e5b445f3bc
parent 20052ab2b6804cd2fefcf3a8acf4fdcb6afa8646
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon,  1 Feb 2016 14:33:03 +0100

add offering url

Diffstat:
Msrc/frontend/fulfillment.php | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/frontend/fulfillment.php b/src/frontend/fulfillment.php @@ -5,10 +5,11 @@ <link rel="stylesheet" type="text/css" href="style.css"> <script type="application/javascript" src="taler-presence.js"></script> <script type="application/javascript"> - function executePayment(H_contract, pay_url) { + function executePayment(H_contract, pay_url, offering_url) { var detail = { H_contract: H_contract, - pay_url: pay_url + pay_url: pay_url, + offering_url: offering_url }; var eve = new CustomEvent('taler-execute-payment', {detail: detail}); document.dispatchEvent(eve); @@ -69,11 +70,13 @@ $my_payment = get($payments[$hc]); // This will keep the query parameters. $pay_url = url_rel("pay.php"); +$offering_url = url_rel("checkout.php", true); + if (null === $my_payment) { echo "<p>you do not have the session state for this contract: " . $hc . "</p>"; echo "<p>Asking the wallet to re-execute it ... </p>"; - echo "<script>executePayment('$hc', '$pay_url');</script>"; + echo "<script>executePayment('$hc', '$pay_url', '$offering_url');</script>"; return; }