commit 5cebfc318511380fdb40aa63f112886045e4828a
parent c54c4c15ebb35282c4107f81a002ee97c428caea
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 3 Mar 2024 11:37:24 +0100
improve v10 spec
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
@@ -2762,9 +2762,14 @@ to validate that a customer made a payment.
// Will match the ``faketime`` argument of the
// query if one was present, otherwise the current
// time at the backend.
- otp_timestamp?: Integer;
+ //
+ // Available since protocol **v10**.
+ otp_timestamp: Integer;
- // Current OTP code of the device.
+ // Current OTP confirmation string of the device.
+ // Matches exactly the string that would be returned
+ // as part of a payment confirmation for the given
+ // amount and time (so may contain multiple OTP codes).
//
// If the ``otp_algorithm`` is time-based, the code is
// returned for the current time, or for the ``faketime``
@@ -2784,7 +2789,7 @@ to validate that a customer made a payment.
// ``otp_algorithm`` and matching client query arguments.
//
// Available since protocol **v10**.
- otp_code?: Integer;
+ otp_code?: String;
}