gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: spec for uri parsing methods


From: gnunet
Subject: [taler-merchant] branch master updated: spec for uri parsing methods
Date: Fri, 07 Aug 2020 03:28:20 +0200

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

jonathan-buchanan pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 5560527  spec for uri parsing methods
5560527 is described below

commit 55605272856e9acefaa3cebcb81acef4806752fe
Author: Jonathan Buchanan <jonathan.russ.buchanan@gmail.com>
AuthorDate: Thu Aug 6 21:28:14 2020 -0400

    spec for uri parsing methods
---
 src/include/taler_merchant_service.h | 44 ++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/src/include/taler_merchant_service.h 
b/src/include/taler_merchant_service.h
index ca391e1..19438f9 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -136,6 +136,50 @@ TALER_MERCHANT_baseurl_add_instance (const char *base_url,
                                      const char *instance_id);
 
 
+/**
+ * Extracts information from a taler://pay URI.
+ *
+ * @param pay_uri the URI to parse.
+ * @param[out] merchant_host the hostname of the merchant.
+ * @param[out] merchant_prefix_path prefix of the base URL
+ *             (NULL if not present).
+ * @param[out] order_id the id of the order to pay.
+ * @param[out] session_id the session id to use for payment
+ *             (NULL if not present).
+ * @param[out] claim_token the claim token needed to claim the order
+ *             (zeroed if not present).
+ * @param[out] ssid the ssid for internet connectivity (NULL if not present).
+ * @return GNUNET_OK on success, GNUNET_SYSERR otherwise.
+ */
+int
+TALER_MERCHANT_parse_pay_uri (const char *pay_uri,
+                              const char **merchant_host,
+                              const char **merchant_prefix_path,
+                              const char **order_id,
+                              const char **session_id,
+                              struct GNUNET_HashCode *claim_token,
+                              const char **ssid);
+
+
+/**
+ * Extracts information from a taler://refund URI.
+ *
+ * @param refund_uri the URI to parse.
+ * @param[out] merchant_host the hostname of the merchant.
+ * @param[out] merchant_prefix_path prefix of the base URL
+ *             (NULL if not present).
+ * @param[out] order_id the id of the order to pay.
+ * @param[out] ssid the ssid for internet connectivity (NULL if not present).
+ * @return GNUNET_OK on success, GNUNET_SYSERR otherwise.
+ */
+int
+TALER_MERCHANT_parse_refund_uri (const char *refund_uri,
+                                 const char **merchant_host,
+                                 const char **merchant_prefix_path,
+                                 const char **order_id,
+                                 const char **ssid);
+
+
 /* ********************* /public/config ****************** */
 
 

-- 
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]