gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-merchant-demos] branch master updated: /order -> /private/o


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: /order -> /private/order
Date: Thu, 23 Jul 2020 18:39:21 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository taler-merchant-demos.

The following commit(s) were added to refs/heads/master by this push:
     new a4e63e7  /order -> /private/order
a4e63e7 is described below

commit a4e63e75f5b7547c8381d4231930e8a78a89cd52
Author: MS <ms@taler.net>
AuthorDate: Thu Jul 23 18:39:10 2020 +0200

    /order -> /private/order
---
 talermerchantdemos/donations/donations.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/talermerchantdemos/donations/donations.py 
b/talermerchantdemos/donations/donations.py
index 2fa4e9f..1344f76 100644
--- a/talermerchantdemos/donations/donations.py
+++ b/talermerchantdemos/donations/donations.py
@@ -78,7 +78,7 @@ def err_abort(abort_status_code, **params):
 # @return the JSON response from the backend, or a error response
 #         if something unexpected happens.
 def backend_instanced_get(instance, endpoint, params):
-    backend_url = urljoin(BACKEND_BASE_URL, f"private/instances/{instance}/")
+    backend_url = urljoin(BACKEND_BASE_URL, f"instances/{instance}/")
     return backend_get(backend_url, endpoint, params)
 
 ##
@@ -90,7 +90,7 @@ def backend_instanced_get(instance, endpoint, params):
 # @param json the POST's body.
 # @return the backend response (JSON format).
 def backend_instanced_post(instance, endpoint, json):
-    backend_url = urljoin(BACKEND_BASE_URL, f"private/instances/{instance}/")
+    backend_url = urljoin(BACKEND_BASE_URL, f"instances/{instance}/")
     return backend_post(backend_url, endpoint, json)
 
 ##
@@ -201,7 +201,7 @@ def donate():
         fulfillment_url=fulfillment_url,
         summary="Donation to {}".format(donation_receiver),
     )
-    order_resp = backend_instanced_post(donation_receiver, "order", 
dict(order=order))
+    order_resp = backend_instanced_post(donation_receiver, "private/order", 
dict(order=order))
     order_id = order_resp["order_id"]
     return flask.redirect(
         flask.url_for(
@@ -209,7 +209,6 @@ def donate():
         )
     )
 
-
 ##
 # This endpoint is used by the payment request page
 # to check if the payment has been completed via the QR code.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]