summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_testing_lib.h
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-24 03:15:16 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-24 03:15:16 -0400
commit974b2b2c3077c929850c1598af1e1e124f530a7f (patch)
treeb7aca47e38a5cb0e097fdf4726620eaaa0e83f5d /src/include/taler_merchant_testing_lib.h
parentdc4125387b31155a9a5d9622bb22d5b55da2f2fd (diff)
downloadmerchant-974b2b2c3077c929850c1598af1e1e124f530a7f.tar.gz
merchant-974b2b2c3077c929850c1598af1e1e124f530a7f.tar.bz2
merchant-974b2b2c3077c929850c1598af1e1e124f530a7f.zip
implement & test POST /paid
Diffstat (limited to 'src/include/taler_merchant_testing_lib.h')
-rw-r--r--src/include/taler_merchant_testing_lib.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index b91b1f75..a22d361e 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -735,6 +735,25 @@ TALER_TESTING_cmd_merchant_pay_order (const char *label,
const char *amount_without_fee,
const char *session_id);
+
+/**
+ * Make an "order paid" test command.
+ *
+ * @param label command label
+ * @param merchant_url merchant base URL
+ * @param pay_reference reference to the payment to verify
+ * @param session_id the session to use for the verification.
+ * @param http_status expected HTTP response code
+ * @return the command
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_merchant_post_orders_paid (const char *label,
+ const char *merchant_url,
+ const char *pay_reference,
+ const char *session_id,
+ unsigned int http_status);
+
+
/**
* Make an "abort" test command.
*