From d552238f16dae629fd896e352cd21fd2d52234da Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 14 Jun 2024 13:41:50 +0200 Subject: [PATCH] Publish invoice service and routing fees to the rabbitmq/webhook --- lib/service/webhook.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/service/webhook.go b/lib/service/webhook.go index 1d0904c3..a30c7b02 100644 --- a/lib/service/webhook.go +++ b/lib/service/webhook.go @@ -65,6 +65,8 @@ type WebhookInvoicePayload struct { UserLogin string `json:"user_login"` Amount int64 `json:"amount"` Fee int64 `json:"fee"` + ServiceFee int64 `json:"service_fee"` + RoutingFee int64 `json:"routing_fee"` Memo string `json:"memo"` DescriptionHash string `json:"description_hash,omitempty"` PaymentRequest string `json:"payment_request"` @@ -114,6 +116,8 @@ func ConvertPayload(invoice models.Invoice, user *models.User) (result WebhookIn UserLogin: user.Login, Amount: invoice.Amount, Fee: invoice.Fee, + ServiceFee: invoice.ServiceFee, + RoutingFee: invoice.RoutingFee, Memo: invoice.Memo, DescriptionHash: invoice.DescriptionHash, PaymentRequest: invoice.PaymentRequest,