merchant

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

commit 3a063e36ea53904672a6889856c2dddee019258e
parent ccee6c1506ff1352be8ab3f4c824075bd8bb04c0
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Fri, 14 Mar 2025 19:45:58 +0100

some comments for myself for dev

Diffstat:
Msrc/backend/taler-merchant-httpd_post-orders-ID-pay.c | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1797,6 +1797,10 @@ phase_payment_notification (struct PayContext *pc) static void phase_generate_donation_receipt (struct PayContext *pc) { + //FIXME: implement + // basically, we need to call the DONAU probably using the donau/donau_service.c + // meaning that we can't bypass the usage of the ifdef HAVE_DONAU_DONAU_SERVICE_H + // bohdan.emotion = SAD; pc->phase = PP_PAYMENT_NOTIFICATION; } @@ -2431,6 +2435,8 @@ phase_execute_pay_transaction (struct PayContext *pc) // FIXME: insert donau blinded inputs (into DB here!), // idempotency: if already exists, no problem! + // I believe it must be the parse_wallet_data.donau.budikeypairs + TMH_notify_order_change (hc->instance, TMH_OSF_CLAIMED | TMH_OSF_PAID, @@ -3983,13 +3989,12 @@ TMH_post_orders_ID_pay (const struct TMH_RequestHandler *rh, case PP_PAY_TRANSACTION: phase_execute_pay_transaction (pc); break; - case PP_PAYMENT_NOTIFICATION: - phase_payment_notification (pc); - break; -// FIXME: donau phase case PP_GENERATE_DONATION_RECEIPT: phase_generate_donation_receipt (pc); break; + case PP_PAYMENT_NOTIFICATION: + phase_payment_notification (pc); + break; case PP_SUCCESS_RESPONSE: phase_success_response (pc); break;