merchant-frontend-examples

ZZZ: Inactive/Deprecated
Log | Files | Refs

commit 1cfc56f43ef5afbb1adf6947978a2391cd9451f1
parent fd6c75c2d1aecca9e004c4c1d72c032990a4c88f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 19 Nov 2016 17:08:12 +0100

switch to http for the example so that we do NOT have code to disable TLS cert checks in the examples

Diffstat:
Mphp/backend.php | 9+--------
Mphp/config.php | 2+-
Mphp/doc/tutorial.texi | 2+-
3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/php/backend.php b/php/backend.php @@ -15,11 +15,6 @@ $options = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $json, - // Disabling SSL for the sole purpose of speed - // up the tutorial, as the normal user is likely - // to NOT have certs for taler.net - CURLOPT_SSL_VERIFYHOST => false, - CURLOPT_SSL_VERIFYPEER => false, CURLOPT_HTTPHEADER => array('Content-Type: application/json')); curl_setopt_array($c, $options); @@ -36,9 +31,7 @@ $c = curl_init(url_join($GLOBALS['BACKEND'], $path)); $options = array(CURLOPT_RETURNTRANSFER => true, - CURLOPT_CUSTOMREQUEST => "GET", - CURLOPT_SSL_VERIFYHOST => false, - CURLOPT_SSL_VERIFYPEER => false); + CURLOPT_CUSTOMREQUEST => "GET"); curl_setopt_array($c, $options); $r = curl_exec($c); file_put_contents("/tmp/php.out", print_r($r, true)); diff --git a/php/config.php b/php/config.php @@ -2,7 +2,7 @@ // This file is in the public domain. // Which backend should we use? Must end in "/". - $BACKEND = "https://backend.demo.taler.net/"; + $BACKEND = "http://backend.demo.taler.net/"; // The currency must match the one used by the backend. $CURRENCY = "KUDOS"; diff --git a/php/doc/tutorial.texi b/php/doc/tutorial.texi @@ -179,7 +179,7 @@ For many critical operations, the frontend we will need to communicate with a Taler backend. Assuming that you do not yet have a backend 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 +@code{http://backend.demo.taler.net/} specifically for testing frontends. It uses the currency ``KUDOS'' and all payments will go into the ``Tutorial'' account at the Taler ``bank'' running at @code{https://bank.demo.taler.net/public-accounts}.