Skip to content

Commit

Permalink
update book
Browse files Browse the repository at this point in the history
  • Loading branch information
lendral3n committed Feb 13, 2024
1 parent 414cb01 commit cdcb983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/externalapi/midtrans.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func New() MidtransInterface {
func (pay *midtrans) NewOrderPayment(book booking.BookingCore) (*booking.PaymentCore, error) {
req := new(coreapi.ChargeReq)
req.TransactionDetails = mid.TransactionDetails{
OrderID: fmt.Sprintf("%d", book.Code),
OrderID: book.Code,
GrossAmt: int64(book.Total),
}

Expand Down

0 comments on commit cdcb983

Please sign in to comment.