diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-09-01 14:27:48 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-09-01 14:27:48 +0200 |
commit | 35dcd4514a93ba0f5353ecd1194fc9b515f2aad4 (patch) | |
tree | 399d8f8fbebf5e8ac383fc318b7be08901279a31 /src/testing/testing_api_cmd_pay_order.c | |
parent | 858e3047b8b595ab693e16ce0bbe0b8983b072ed (diff) | |
download | merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.tar.gz merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.tar.bz2 merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.zip |
new CRUD APIs for OTP devices and merchant accounts (fixes #7929, #7824), one minor test is still failing...
Diffstat (limited to 'src/testing/testing_api_cmd_pay_order.c')
-rw-r--r-- | src/testing/testing_api_cmd_pay_order.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_pay_order.c b/src/testing/testing_api_cmd_pay_order.c index b49dd716..efc94a80 100644 --- a/src/testing/testing_api_cmd_pay_order.c +++ b/src/testing/testing_api_cmd_pay_order.c @@ -349,12 +349,13 @@ pay_run (void *cls, if (NULL == contract_terms) TALER_TESTING_FAIL (is); if (GNUNET_OK != - TALER_TESTING_get_trait_template_pos_key (proposal_cmd, - &ps->pos_key)) + TALER_TESTING_get_trait_otp_key (proposal_cmd, + &ps->pos_key)) ps->pos_key = NULL; - if (GNUNET_OK == - TALER_TESTING_get_trait_template_pos_alg (proposal_cmd, - &alg_ptr)) + if ( (GNUNET_OK == + TALER_TESTING_get_trait_otp_alg (proposal_cmd, + &alg_ptr)) && + (NULL != alg_ptr) ) ps->pos_alg = *alg_ptr; { /* Get information that needs to be put verbatim in the @@ -543,8 +544,8 @@ pay_traits (void *cls, TALER_TESTING_make_trait_merchant_pub (merchant_pub), TALER_TESTING_make_trait_merchant_sig (&ps->merchant_sig), TALER_TESTING_make_trait_amount (&amount_with_fee), - TALER_TESTING_make_trait_template_pos_key (ps->pos_key), - TALER_TESTING_make_trait_template_pos_alg (&ps->pos_alg), + TALER_TESTING_make_trait_otp_key (ps->pos_key), + TALER_TESTING_make_trait_otp_alg (&ps->pos_alg), TALER_TESTING_trait_end () }; |