From 48a64e2a994760118d69c9206b36c94bca5f9ac5 Mon Sep 17 00:00:00 2001 From: Jeff Burdges Date: Sat, 31 Oct 2015 10:51:43 +0100 Subject: Minor grammer stuff --- api-merchant.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'api-merchant.rst') diff --git a/api-merchant.rst b/api-merchant.rst index 05256d0f..0ebd5f78 100644 --- a/api-merchant.rst +++ b/api-merchant.rst @@ -99,11 +99,11 @@ using coins in the form of a `deposit permission`. This signature using the coins signifies both agreement of the customer and represents payment at the same time. The `frontend` passes the `deposit permission` to the `backend` which immediately verifies it -with the mint and signals the `frontend` the success (or failure) of +with the mint and signals the `frontend` the success or failure of the payment process. If the payment is successful, the `frontend` is responsible for generating the fullfillment page. -The contract format is specified in section `contract`_. +The contract format is specified in the `contract`_ section. +++++++++ @@ -229,15 +229,15 @@ The HTML page implements all interactions using JavaScript signals dispatched on the HTML element `body`. When the merchant wants to notify the availability of a Taler-style payment -option (for example on a "checkout" page), it sends the following event: +option, such as on a "checkout" page, it sends the following event: .. js:data:: taler-checkout-probe 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. It also needs to be sent when -the Taler extension is dynamically loaded (if the user activates -the extension while he is on the checkout page). This is done by +the Taler extension is dynamically loaded, like when the user activates +the extension while he is on the checkout page. This is done by listening for the .. js:data:: taler-load @@ -259,8 +259,8 @@ visiting a checkout page, the page should listen for the event to hide the Taler payment option. -Secondly, when the Taler extension is active and the user closes (or navigates -away from) the checkout page, the page should listen to a +Secondly, when the Taler extension is active and the user closes or navigates +away from the checkout page, the page should listen to a .. js:data:: taler-navigating-away @@ -406,7 +406,7 @@ cookies to identify the shopping session. :reqheader Content-Type: application/json :` of this merchant. The wallet takes this value as-is from the contract - :`. The wallet can choose whether to take this value from the gotten contract (field `h_contract`), or regenerating one starting from the values it gets within the contract + :`. The wallet can choose whether to take this value obtained from the field `h_contract`, or regenerating one starting from the values it gets within the contract :