commit fd6c75c2d1aecca9e004c4c1d72c032990a4c88f
parent 45d009f512d3b07dbeac8d5ce42b06f38aa28e7c
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 19 Nov 2016 14:57:07 +0100
english
Diffstat:
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/php/doc/tutorial.texi b/php/doc/tutorial.texi
@@ -170,7 +170,7 @@ they should instead be prompted to proceed with a classic dialog for
credit card payments.
-@section Configuring the backend
+@section Specifying the backend
@cindex backend
@cindex configuration
@@ -181,8 +181,8 @@ configured, you can use the public backend provided by the Taler
project for testing. This public backend has been set-up at
@code{https://backend.demo.taler.net/} specifically for testing
frontends. It uses the currency ``KUDOS'' and all payments will
-go into the XXX account at the Taler ``bank'' running at
-@code{https://bank.demo.taler.net/}.
+go into the ``Tutorial'' account at the Taler ``bank'' running at
+@code{https://bank.demo.taler.net/public-accounts}.
To point the frontend being developed in this tutorial to some
backend, it suffices to set the variable @code{$BACKEND} in
@@ -271,7 +271,7 @@ to the 'Taler charity program':
The server-side handler for @code{/generate-contract.php} has to call
@code{make_contract} and then POST the result to the backend at
-@code{/contract}. By POSTing the proposal to the backend we get a
+@code{/contract}. By POSTing the proposed contract to the backend we get a
cryptographic signature over its contents. The result is then
returned to the wallet.
diff --git a/php/donate.php b/php/donate.php
@@ -1,14 +1,16 @@
<?php
// This file is in the public domain.
+ // Next two lines offer Taler payment option for Taler wallets:
http_response_code(402); // 402: Payment required
header ('X-Taler-Contract-Url: /generate-contract.php');
- echo "<html>
- <head>
- <title>Select payment method</title>
- </head>
- <body>
- Here you should put the HTML for the non-Taler (credit card) payment.
- </body>
- </html>";
?>
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>Select payment method</title>
+ </head>
+ <body>
+ Here you should put the HTML for the non-Taler (credit card) payment.
+ </body>
+</html>