diff options
Diffstat (limited to 'src/lib/merchant_api_wallet_get_order.c')
-rw-r--r-- | src/lib/merchant_api_wallet_get_order.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/merchant_api_wallet_get_order.c b/src/lib/merchant_api_wallet_get_order.c index 7f6b1edb..7bfdf709 100644 --- a/src/lib/merchant_api_wallet_get_order.c +++ b/src/lib/merchant_api_wallet_get_order.c @@ -381,6 +381,8 @@ handle_wallet_get_order_finished (void *cls, * @param min_refund long poll for the service to approve a refund exceeding this value; * use NULL to not wait for any refund (only for payment). Only makes sense * with a non-zero @a timeout. Can be NULL. + * @param await_refund_obtained long poll for the order's refunds to be + * picked up by the wallet. * @param cb callback which will work the response gotten from the backend * @param cb_cls closure to pass to @a cb * @return handle for this operation, NULL upon errors @@ -393,6 +395,7 @@ TALER_MERCHANT_wallet_order_get (struct GNUNET_CURL_Context *ctx, struct GNUNET_TIME_Relative timeout, const char *session_id, const struct TALER_Amount *min_refund, + bool await_refund_obtained, TALER_MERCHANT_OrderWalletGetCallback cb, void *cb_cls) { @@ -444,6 +447,12 @@ TALER_MERCHANT_wallet_order_get (struct GNUNET_CURL_Context *ctx, (NULL != min_refund) ? TALER_amount2s (min_refund) : NULL, + await_refund_obtained + ? "await_refund_obtained" + : NULL, + await_refund_obtained + ? "yes" + : NULL, NULL); GNUNET_free (path); } |