mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
Return invoiceUrl in invoice-payment API.
This commit is contained in:
@ -169,9 +169,9 @@ func (c *ApiController) InvoicePayment() {
|
||||
id := c.Input().Get("id")
|
||||
|
||||
payment := object.GetPayment(id)
|
||||
err := object.InvoicePayment(payment)
|
||||
invoiceUrl, err := object.InvoicePayment(payment)
|
||||
if err != nil {
|
||||
c.ResponseError(err.Error())
|
||||
}
|
||||
c.ResponseOk()
|
||||
c.ResponseOk(invoiceUrl)
|
||||
}
|
||||
|
Reference in New Issue
Block a user