summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-03 11:53:52 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-03 11:53:52 +0100
commit3c9d0e7b78014d448d7be0bbee3c1e83e9baa473 (patch)
treecbbac337ab7ba01858c04c5b9dbb2e62c09f5073 /src/include/taler_merchant_service.h
parented0a15461984c963d25478d820feb2827f7886a1 (diff)
downloadmerchant-3c9d0e7b78014d448d7be0bbee3c1e83e9baa473.tar.gz
merchant-3c9d0e7b78014d448d7be0bbee3c1e83e9baa473.tar.bz2
merchant-3c9d0e7b78014d448d7be0bbee3c1e83e9baa473.zip
implement #8357
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index 78212d86..448b8ba4 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -34,7 +34,7 @@
/**
* Library version (in hex) for compatibility tests.
*/
-#define TALER_MERCHANT_SERVICE_VERSION 0x00090402
+#define TALER_MERCHANT_SERVICE_VERSION 0x00090403
/**
@@ -4269,9 +4269,14 @@ struct TALER_MERCHANT_OtpDeviceGetResponse
const char *otp_device_description;
/**
- * OTP device key.
+ * POS confirmation text with OTP codes that
+ * would be returned for a purchase over the
+ * amount given in the query for the respective
+ * time and algorithm. NULL if the confirmation
+ * could not be computed based on the query and
+ * OTP algorithm.
*/
- const char *otp_key;
+ const char *otp_code;
/**
* current counter.
@@ -4283,6 +4288,12 @@ struct TALER_MERCHANT_OtpDeviceGetResponse
*/
enum TALER_MerchantConfirmationAlgorithm otp_alg;
+ /**
+ * Timestamp in second used to compute
+ * @e otp_code.
+ */
+ uint64_t otp_timestamp_s;
+
} ok;
} details;