-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdata.go
30 lines (27 loc) · 861 Bytes
/
data.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package chapa
type (
ChapaPaymentRequest struct {
Amount float64 `json:"amount"`
Currency string `json:"currency"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
CallbackURL string `json:"callback_url"`
TransactionRef string `json:"tx_ref"`
Customization map[string]interface{} `json:"customization"`
}
ChapaPaymentResponse struct {
Message string `json:"message"`
Status string `json:"status"`
Data struct {
CheckoutURL string `json:"checkout_url"`
}
}
ChapaVerifyResponse struct {
Message string `json:"message"`
Status string `json:"status"`
Data struct {
TransactionFee float64 `json:"charge"`
}
}
)