diff options
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index 247a06d5..2eb94a65 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -1072,11 +1072,13 @@ struct TALER_MERCHANTDB_Plugin * contract terms (to be hashed), the creation_time and pay_deadline (to be * obtained from the merchant_orders table). The "session_id" should be * initially set to the empty string. The "fulfillment_url" and "refund_deadline" - * must be extracted from @a contract_terms. + * must be extracted from @a contract_terms. This function will only + * succeed if @a claim_token matches the token created for the order. * * @param cls closure * @param instance_id instance's identifier * @param order_id order_id used to store + * @param claim_token the token belonging to the order * @param contract_terms contract to store * @return transaction status, #GNUNET_DB_STATUS_HARD_ERROR if @a contract_terms * is malformed @@ -1085,6 +1087,7 @@ struct TALER_MERCHANTDB_Plugin (*insert_contract_terms)(void *cls, const char *instance_id, const char *order_id, + const struct TALER_ClaimTokenP *claim_token, json_t *contract_terms); |