commit 25435f17fe362ca6938aa4abb6c87ac8a9bceec6
parent e11eed953c21e183d12617804d593e533a0797da
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 18 Aug 2015 23:08:50 +0200
fix terminology errors
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/api-merchant.rst b/api-merchant.rst
@@ -207,15 +207,15 @@ The following are the API made available by the merchant's frontend to the walle
if(choice.checked){
if(choice.value == "Taler"){
var cert = new XMLHttpRequest();
- // request certificate
- cert.open("POST", "/taler/certificate", true);
+ // request contract
+ cert.open("POST", "/taler/contract", true);
cert.onload = function (e) {
if (cert.readyState == 4) {
if (cert.status == 200){
- // display certificate (i.e. it sends the JSON string to the (XUL) extension)
+ // display contract (i.e. it sends the JSON string to the (XUL) extension)
sendContract(cert.responseText);
}
- else alert("No certificate gotten, status " + cert.status);
+ else alert("No contract gotten, status " + cert.status);
}
};
cert.onerror = function (e){
@@ -300,7 +300,7 @@ The following API are made available by the merchant's backend to the merchant's
.. http:post:: /contract
- Ask the backend to generate a certificate on the basis of the given JSON.
+ Ask the backend to generate a contract on the basis of the given JSON.
:reqheader Content-Type: application/json
:<json string desc: a human readable description of this deal.
@@ -310,7 +310,7 @@ The following API are made available by the merchant's backend to the merchant's
**Success Response**
- :status 200 OK: The backend has successfully created the certificate
+ :status 200 OK: The backend has successfully created the contract
:resheader Content-Type: application/json
:<json base32 contract: the encoding of the blob (which blob? link above.) representing the contract.
:<json base32 sig: signature of this contract with purpose TALER_SIGNATURE_MERCHANT_CONTRACT.