diff --git a/controllers_v2/keysend.ctrl.go b/controllers_v2/keysend.ctrl.go index 0340e69b..0d365b5a 100644 --- a/controllers_v2/keysend.ctrl.go +++ b/controllers_v2/keysend.ctrl.go @@ -247,8 +247,8 @@ func (controller *KeySendController) SingleKeySend(ctx context.Context, reqBody } responseBody := &KeySendResponseBody{ - Amount: sendPaymentResponse.PaymentRoute.TotalAmt, - Fee: sendPaymentResponse.PaymentRoute.TotalFees, + Amount: invoice.Amount, + Fee: invoice.Fee, CustomRecords: customRecords, Description: reqBody.Memo, Destination: reqBody.Destination, diff --git a/controllers_v2/payinvoice.ctrl.go b/controllers_v2/payinvoice.ctrl.go index bf167371..e96eef9c 100644 --- a/controllers_v2/payinvoice.ctrl.go +++ b/controllers_v2/payinvoice.ctrl.go @@ -129,8 +129,8 @@ func (controller *PayInvoiceController) PayInvoice(c echo.Context) error { } responseBody := &PayInvoiceResponseBody{ PaymentRequest: paymentRequest, - Amount: sendPaymentResponse.PaymentRoute.TotalAmt, - Fee: sendPaymentResponse.PaymentRoute.TotalFees, + Amount: invoice.Amount, + Fee: invoice.Fee, Description: invoice.Memo, DescriptionHash: invoice.DescriptionHash, Destination: invoice.DestinationPubkeyHex,