xendit/xendit-go

Invoice: failed to parse payload callback QRIS

exneval opened this issue · 1 comments

// InvoiceFInvoicePaymentDetaile is data that contained in `Invoice` at PaymentDetail
type InvoicePaymentDetail struct {
    Type  string  `json:"receipt_id,omitempty"`
    Value float64 `json:"source,omitempty"`
 }

since v1.0.3
InvoicePaymentDetail.Value change to float64
Refer to this commit

but the payload payment_details.source still expect a string

this will make the callback event failed to request (status code: 400)

hi @exneval ,this issue has been fixed in PR #97