merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 6120e636fb6b7890a497530781c121648098e5de
parent a32f8bbd641afd21a27309c6a8e80a7869118aef
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 15 Feb 2016 19:06:27 +0100

use GNUNET_PQ instead of removed TALER_PQ

Diffstat:
Msrc/backenddb/plugin_merchantdb_postgres.c | 34+++++++++++++++++-----------------
Msrc/frontend/index.php | 4++--
2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c @@ -158,21 +158,21 @@ postgres_store_payment (void *cls, PGresult *res; ExecStatusType status; - struct TALER_PQ_QueryParam params[] = { - TALER_PQ_query_param_auto_from_type (h_contract), - TALER_PQ_query_param_auto_from_type (h_wire), - TALER_PQ_query_param_uint64 (&transaction_id), - TALER_PQ_query_param_absolute_time (&timestamp), - TALER_PQ_query_param_absolute_time (&refund), + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_auto_from_type (h_contract), + GNUNET_PQ_query_param_auto_from_type (h_wire), + GNUNET_PQ_query_param_uint64 (&transaction_id), + GNUNET_PQ_query_param_absolute_time (&timestamp), + GNUNET_PQ_query_param_absolute_time (&refund), TALER_PQ_query_param_amount (amount_without_fee), - TALER_PQ_query_param_auto_from_type (coin_pub), + GNUNET_PQ_query_param_auto_from_type (coin_pub), TALER_PQ_query_param_json (mint_proof), - TALER_PQ_query_param_end + GNUNET_PQ_query_param_end }; - res = TALER_PQ_exec_prepared (pg->conn, - "insert_payment", - params); + res = GNUNET_PQ_exec_prepared (pg->conn, + "insert_payment", + params); status = PQresultStatus (res); if (PGRES_COMMAND_OK != status) @@ -224,13 +224,13 @@ postgres_check_payment(void *cls, PGresult *res; ExecStatusType status; - struct TALER_PQ_QueryParam params[] = { - TALER_PQ_query_param_uint64 (&transaction_id), - TALER_PQ_query_param_end + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&transaction_id), + GNUNET_PQ_query_param_end }; - res = TALER_PQ_exec_prepared (pg->conn, - "check_payment", - params); + res = GNUNET_PQ_exec_prepared (pg->conn, + "check_payment", + params); status = PQresultStatus (res); if (PGRES_TUPLES_OK != status) diff --git a/src/frontend/index.php b/src/frontend/index.php @@ -4,7 +4,7 @@ require_once "../frontend_lib/config.php"; ?> <html lang="en"> <head> - <title>Toy &quot;Store&quot; - Taler Demo</title> + <title>Taler Donation Demo</title> <link rel="stylesheet" type="text/css" href="style.css"> <script src="taler-presence.js" type="text/javascript"></script> <script type="text/javascript"> @@ -51,7 +51,7 @@ echo "\tvar shop_currency = '$SHOP_CURRENCY';\n"; <section id="main"> <article> - <h1>Welcome to the Taler Demo Shop</h1> + <h1>Welcome to the Taler Donation Demo</h1> <p>This "toy" website provides you with the ability to experience using the