summaryrefslogtreecommitdiff
path: root/api-merchant.rst
diff options
context:
space:
mode:
Diffstat (limited to 'api-merchant.rst')
-rw-r--r--api-merchant.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/api-merchant.rst b/api-merchant.rst
index 83dc8f2f..afa74591 100644
--- a/api-merchant.rst
+++ b/api-merchant.rst
@@ -113,6 +113,8 @@ for those fields prepended with `GNUNET_`.
.. _deposit permission:
+ * **deposit permission**:
+
.. sourcecode:: c
struct DepositPermission
@@ -141,6 +143,20 @@ option (for example on a "checkout" page), it sends the following event:
.. js:data:: taler-payment-mfirst
+.. note::
+ this event must be sent from a callback for the `onload` event of the `BODY` element,
+ otherwise the extension would have not time to register a listener for this event.
+ For example:
+
+.. sourcecode:: html
+
+ <body onload="function(){
+ // set up the listener for 'taler-wallet-mfirst'
+ // ...
+ let eve = new Event('taler-payment-first');
+ document.body.dispatchEvent(eve);
+ };"> ... </body>
+
and the wallet will reply with a
.. js:data:: taler-wallet-mfirst