Add QR Payment

This commit is contained in:
aditya.siregar
2024-08-06 16:21:55 +07:00
parent 67b4bb9563
commit 53505cf2ab
10 changed files with 141 additions and 18 deletions
+6
View File
@@ -11,3 +11,9 @@ type MidtransRequest struct {
TotalAmount int64
OrderItems []OrderItem
}
type MidtransQrisResponse struct {
QrCodeUrl string
OrderID string
Amount int64
}
+1
View File
@@ -45,6 +45,7 @@ type OrderResponse struct {
type ExecuteOrderResponse struct {
Order *Order
QRCode string
PaymentToken string
RedirectURL string
}