merchant

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

commit e2d0bbc54c05ce2e105b72d31b1eb243749ff819
parent 0c1c731b698028c4a250dda84685307b7004bc56
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Mon, 16 Jun 2025 18:59:00 +0200

changing the webhook to also return the wtid

Diffstat:
Msrc/backenddb/pg_insert_transfer_details.sql | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backenddb/pg_insert_transfer_details.sql b/src/backenddb/pg_insert_transfer_details.sql @@ -240,7 +240,10 @@ LOOP ,mw.webhook_serial ,mw.url ,mw.http_method - ,replace_placeholder(mw.body_template, 'order_id', my_order_id)::TEXT + ,replace_placeholder( + replace_placeholder(mw.body_template, 'order_id', my_order_id), + 'wtid', encode(in_wtid, 'hex') + )::TEXT FROM merchant_webhook mw WHERE mw.event_type = 'order_settled' AND mw.merchant_serial = my_merchant_serial;