summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_pay.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-23 17:52:26 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-23 17:52:26 +0100
commit194c97899c81cafa3673f7f7d9db6be8425e0fc2 (patch)
treec3bc43571cf602fc422585a3ff7a25ffdaa4acb3 /src/backend/taler-merchant-httpd_pay.c
parentfff2f0e3c8dc7665cdaa3adeb9d4521e75cb078d (diff)
downloadmerchant-194c97899c81cafa3673f7f7d9db6be8425e0fc2.tar.gz
merchant-194c97899c81cafa3673f7f7d9db6be8425e0fc2.tar.bz2
merchant-194c97899c81cafa3673f7f7d9db6be8425e0fc2.zip
Modify /history API and DB table for order_id-proposal_data
mapping. Adapting testcase and lib for that.
Diffstat (limited to 'src/backend/taler-merchant-httpd_pay.c')
-rw-r--r--src/backend/taler-merchant-httpd_pay.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c
index f3be11ad..2d86a12b 100644
--- a/src/backend/taler-merchant-httpd_pay.c
+++ b/src/backend/taler-merchant-httpd_pay.c
@@ -922,7 +922,6 @@ parse_pay (struct MHD_Connection *connection, json_t *root, struct PayContext *p
unsigned int coins_index;
const char *chosen_exchange;
const char *order_id;
- struct GNUNET_HashCode h_oid;
struct TALER_MerchantPublicKeyP merchant_pub;
int res;
struct GNUNET_JSON_Specification spec[] = {
@@ -942,13 +941,9 @@ parse_pay (struct MHD_Connection *connection, json_t *root, struct PayContext *p
return res;
}
- GNUNET_CRYPTO_hash (order_id,
- strlen (order_id),
- &h_oid);
-
res = db->find_proposal_data (db->cls,
&pc->proposal_data,
- &h_oid,
+ order_id,
&merchant_pub);