mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-20 14:14:47 +01:00
fix: pay response should follow lndhub api
This commit is contained in:
@@ -38,7 +38,7 @@ type KeySendResponseBody struct {
|
|||||||
DescriptionHashStr string `json:"description_hash,omitempty"`
|
DescriptionHashStr string `json:"description_hash,omitempty"`
|
||||||
PaymentError string `json:"payment_error,omitempty"`
|
PaymentError string `json:"payment_error,omitempty"`
|
||||||
PaymentPreimage *lib.JavaScriptBuffer `json:"payment_preimage,omitempty"`
|
PaymentPreimage *lib.JavaScriptBuffer `json:"payment_preimage,omitempty"`
|
||||||
PaymentRoute *service.Route `json:"route,omitempty"`
|
PaymentRoute *service.Route `json:"payment_route,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// KeySend : Key send Controller
|
// KeySend : Key send Controller
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ type PayInvoiceResponseBody struct {
|
|||||||
DescriptionHashStr string `json:"description_hash,omitempty"`
|
DescriptionHashStr string `json:"description_hash,omitempty"`
|
||||||
PaymentError string `json:"payment_error,omitempty"`
|
PaymentError string `json:"payment_error,omitempty"`
|
||||||
PaymentPreimage *lib.JavaScriptBuffer `json:"payment_preimage,omitempty"`
|
PaymentPreimage *lib.JavaScriptBuffer `json:"payment_preimage,omitempty"`
|
||||||
PaymentRoute *service.Route `json:"route,omitempty"`
|
PaymentRoute *service.Route `json:"payment_route,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PayInvoice : Pay invoice Controller
|
// PayInvoice : Pay invoice Controller
|
||||||
|
|||||||
Reference in New Issue
Block a user