taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit cb8f489ea466dbd197573be2d5f17cd2c6c9f6c7
parent 9f8ca0a0ceec8871771cb460bc552d2800f0204f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 10 Sep 2015 15:18:30 +0200

Merge branch 'master' of git.taler.net:api

Diffstat:
Mapi-merchant.rst | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git 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