aboutsummaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_check_payment.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-23 18:39:17 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-23 18:39:17 +0200
commit63994abe1e2780d3a43e261090d3261e8d91a854 (patch)
tree2d2fb235f05d12fcd5d9ea9c34be29c6e37b51c5 /src/lib/merchant_api_check_payment.c
parent7d50af6651ea4e0a15960434e1d574596552ead7 (diff)
downloadmerchant-63994abe1e2780d3a43e261090d3261e8d91a854.tar.gz
merchant-63994abe1e2780d3a43e261090d3261e8d91a854.tar.bz2
merchant-63994abe1e2780d3a43e261090d3261e8d91a854.zip
implement instances via one base URL per instance
Previously, instances were addressed in various ways depending on then request (GET parameter, some instance_id in the POST body). With this commit, users of the merchant backend don't see the instance, they just see another base URL.
Diffstat (limited to 'src/lib/merchant_api_check_payment.c')
-rw-r--r--src/lib/merchant_api_check_payment.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/merchant_api_check_payment.c b/src/lib/merchant_api_check_payment.c
index 8c057072..8848686d 100644
--- a/src/lib/merchant_api_check_payment.c
+++ b/src/lib/merchant_api_check_payment.c
@@ -174,7 +174,6 @@ handle_check_payment_finished (void *cls,
*
* @param ctx execution context
* @param backend_url base URL of the merchant backend
- * @param instance instance used for the transaction
* @param order_id order id to identify the payment
* @parem session_id sesion id for the payment (or NULL if the payment is not bound to a session)
* @param check_payment_cb callback which will work the response gotten from the backend
@@ -184,7 +183,6 @@ handle_check_payment_finished (void *cls,
struct TALER_MERCHANT_CheckPaymentOperation *
TALER_MERCHANT_check_payment (struct GNUNET_CURL_Context *ctx,
const char *backend_url,
- const char *instance,
const char *order_id,
const char *session_id,
TALER_MERCHANT_CheckPaymentCallback check_payment_cb,
@@ -194,15 +192,13 @@ TALER_MERCHANT_check_payment (struct GNUNET_CURL_Context *ctx,
CURL *eh;
GNUNET_assert (NULL != backend_url);
- GNUNET_assert (NULL != instance);
GNUNET_assert (NULL != order_id);
cpo = GNUNET_new (struct TALER_MERCHANT_CheckPaymentOperation);
cpo->ctx = ctx;
cpo->cb = check_payment_cb;
cpo->cb_cls = check_payment_cb_cls;
- cpo->url = TALER_url_join (backend_url, "/check-payment",
- "instance", instance,
+ cpo->url = TALER_url_join (backend_url, "check-payment",
"order_id", order_id,
"session_id", session_id,
NULL);