Skip to content

Commit

Permalink
Merge pull request #98 from Kos-Kita/updateid
Browse files Browse the repository at this point in the history
update book
  • Loading branch information
lendral3n authored Feb 13, 2024
2 parents 9465a74 + cdcb983 commit b878634
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 b878634

Please sign in to comment.