summaryrefslogtreecommitdiff
path: root/example-essay-store.rst
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-03 17:30:43 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-03 17:30:43 +0200
commit538130340e43b8e56aa1c607f0dc12dea825ec4d (patch)
treea594b4b1e177dc07f559e4d5a6a70fd24599ce27 /example-essay-store.rst
parentcb5bea8273e2cf5fe4114bbbcff375b9fd567f4f (diff)
downloaddocs-538130340e43b8e56aa1c607f0dc12dea825ec4d.tar.gz
docs-538130340e43b8e56aa1c607f0dc12dea825ec4d.tar.bz2
docs-538130340e43b8e56aa1c607f0dc12dea825ec4d.zip
unifying merchant's API in one single place, plus various fixes
Diffstat (limited to 'example-essay-store.rst')
-rw-r--r--example-essay-store.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/example-essay-store.rst b/example-essay-store.rst
index f498ad4f..042c5233 100644
--- a/example-essay-store.rst
+++ b/example-essay-store.rst
@@ -80,7 +80,7 @@ This demonstrator lies in `examples/blog` of `git://taler.net/merchant/examples/
The essay store, available at https://blog.demo.taler.net, is such that its homepage
is a list of buyable articles and each article is a reference to an `offering
-URL` (see :ref:`offer`). In particular, this offering URL has the following format:
+URL` (see :ref:`byoffer`). In particular, this offering URL has the following format:
`https://blog.demo.taler.net/essay_fulfillment.php?article=articleId`
@@ -98,7 +98,7 @@ would be a fulfillment URL.
Once the user visits the offering URL by clicking on some article's title, the merchant
1. checks if the state associated to this article corresponds to "payed". If this is the
- case, point 7. is triggered, which is what happens when point 0 of :ref:`offer` is true.
+ case, point 7. is triggered, which is what happens when point 0 of :ref:`byoffer` is true.
2. checks if the user gave additional parameters to the URL above, actually making it a
fulfillment URL. If so, jump to point `y`.
@@ -109,7 +109,7 @@ Once the user visits the offering URL by clicking on some article's title, the m
JavaScript and not by the wallet; that gives more flexibility to the merchants by reducing
the communication between wallets and shops. The wallet gets involved once the
contract arrives and the JavaScript fires a `taler-confirm-contract` event containing the
- contract, see point 1. of :ref:`offer`.
+ contract, see point 1. of :ref:`byoffer`.
4. the wallet visits the fulfillment URL associated with this purchase (the fulfillment
URL's path is indicated in the contract, so the wallet has to just add `tid` and `timestamp`
@@ -122,7 +122,7 @@ Once the user visits the offering URL by clicking on some article's title, the m
to be payed is actually mentioned in the deposit permission. Without this control, a malicious
wallet can send a deposit permission for `articleA` and get the resource `articleB`, see point 6.
As a last step, the script returns a page which fires a `taler-execute-payment` event in the user's
- browser carrying the same data structure as in point 4. of :ref:`offer`.
+ browser carrying the same data structure as in point 4. of :ref:`byoffer`.
Note that both in point 3. and 5. the HTML page returned is the same, namely it is the page showing
the credit card payment. It is designed so that it is possible to `inject` the event to fire at the
user's browser. So in point 3. the injected event is `taler-confirm-contract`, and in point 5. is