diff options
author | priscilla <priscilla.huang@efrei.net> | 2023-03-14 10:11:23 -0400 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2023-03-22 10:23:06 -0400 |
commit | 03f432afbf824777b2d5aa5897fc6737a08119eb (patch) | |
tree | c501880a8e4d5f853c044fd2e1db1634bd51918b /src | |
parent | 21bce66874c961271aed9016015a8d3fdcc09279 (diff) |
update of the test TOTP but not finish
Diffstat (limited to 'src')
-rw-r--r-- | src/include/taler_merchant_service.h | 10 | ||||
-rw-r--r-- | src/include/taler_merchant_testing_lib.h | 13 |
2 files changed, 19 insertions, 4 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h index 20da7abd..b2f2f334 100644 --- a/src/include/taler_merchant_service.h +++ b/src/include/taler_merchant_service.h @@ -2179,6 +2179,11 @@ struct TALER_MERCHANT_PayResponse */ struct TALER_MerchantSignatureP merchant_sig; + /** + * Optional payment confirmation code returned by the service. + */ + const char *pos_confirmation; + } success; // TODO: might want to return further details on errors, @@ -4208,6 +4213,11 @@ struct TALER_MERCHANT_TemplateGetResponse const char *pos_key; /** + * Option that add amount of the order + */ + const enum TALER_MerchantConfirmationAlgorithm pos_alg; + + /** * Template for the contract. */ const json_t *template_contract; diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h index 02f386c4..886b052b 100644 --- a/src/include/taler_merchant_testing_lib.h +++ b/src/include/taler_merchant_testing_lib.h @@ -1498,7 +1498,8 @@ TALER_TESTING_cmd_merchant_kyc_get (const char *label, * POST /templates request. * @param template_id the ID of the template to query * @param template_description description of the template - * @param image base64-encoded template image + * @param pos_key base32-encoded key to verify the payment + * @param pos_alg is an option that show the amount of the order. it is linked with the pos_key * @param template_contract where the contract of the company is * @param http_status expected HTTP response code. * @return the command. @@ -1509,7 +1510,8 @@ TALER_TESTING_cmd_merchant_post_templates2 ( const char *merchant_url, const char *template_id, const char *template_description, - const char *image, + const char *pos_key, + const enum TALER_MerchantConfirmationAlgorithm pos_alg, json_t *template_contract, unsigned int http_status); @@ -1541,7 +1543,8 @@ TALER_TESTING_cmd_merchant_post_templates (const char *label, * PATCH /template request. * @param template_id the ID of the template to query * @param template_description description of the template - * @param image base64-encoded template image + * @param pos_key base32-encoded key to verify the payment + * @param pos_alg is an option that show the amount of the order. it is linked with the pos_key * @param template_contract contract of the company * @param http_status expected HTTP response code. * @return the command. @@ -1552,7 +1555,8 @@ TALER_TESTING_cmd_merchant_patch_template ( const char *merchant_url, const char *template_id, const char *template_description, - const char *image, + const char *pos_key, + const enum TALER_MerchantConfirmationAlgorithm pos_alg, json_t *template_contract, unsigned int http_status); @@ -1867,6 +1871,7 @@ TALER_TESTING_cmd_checkserver2 (const char *label, op (proposal_reference, const char *) \ op (template_description, const char *) \ op (template_pos_key, const char *) \ + op (template_pos_alg, const enum TALER_MerchantConfirmationAlgorithm) \ op (template_id, const char *) \ op (template_contract, const json_t) \ op (event_type, const char *) \ |