Skip to content

Commit

Permalink
fix: include service fee in api response
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Feb 5, 2024
1 parent 2360406 commit aab031c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers_v2/payinvoice.ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ func (controller *PayInvoiceController) PayInvoice(c echo.Context) error {
"message": err.Error(),
})
}

responseBody := &PayInvoiceResponseBody{
PaymentRequest: paymentRequest,
Amount: sendPaymentResponse.PaymentRoute.TotalAmt,
Fee: sendPaymentResponse.PaymentRoute.TotalFees,
Fee: invoice.Fee,
Description: invoice.Memo,
DescriptionHash: invoice.DescriptionHash,
Destination: invoice.DestinationPubkeyHex,
Expand Down

0 comments on commit aab031c

Please sign in to comment.