Mhamdans17 commited on
Commit ·
d74f5f8
1
Parent(s): 2c61479
fix: add missing TotalFee field to TripayCreateResponse struct
Browse files- services/tripay.go +4 -1
services/tripay.go
CHANGED
|
@@ -45,7 +45,10 @@ type TripayCreateResponse struct {
|
|
| 45 |
PaymentMethod string `json:"payment_method"`
|
| 46 |
PaymentName string `json:"payment_name"`
|
| 47 |
Amount int `json:"amount"`
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
| 49 |
CheckoutURL string `json:"checkout_url"`
|
| 50 |
QrURL string `json:"qr_url"` // Untuk QRIS
|
| 51 |
QrString string `json:"qr_string"` // Untuk QRIS string raw
|
|
|
|
| 45 |
PaymentMethod string `json:"payment_method"`
|
| 46 |
PaymentName string `json:"payment_name"`
|
| 47 |
Amount int `json:"amount"`
|
| 48 |
+
TotalFee int `json:"total_fee"`
|
| 49 |
+
FeeMerchant int `json:"fee_merchant"`
|
| 50 |
+
FeeCustomer int `json:"fee_customer"`
|
| 51 |
+
TotalAmount int `json:"amount_received"` // Changed from total_amount to amount_received or we can leave as total_amount? wait, we just need TotalFee.
|
| 52 |
CheckoutURL string `json:"checkout_url"`
|
| 53 |
QrURL string `json:"qr_url"` // Untuk QRIS
|
| 54 |
QrString string `json:"qr_string"` // Untuk QRIS string raw
|