-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.go
44 lines (37 loc) · 1.04 KB
/
constants.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package unitpay
const (
UnitpayAPIHost = "unitpay.ru"
UnitpayMethodInitPayment = "initPayment"
UnitpayMethodGetPayment = "getPayment"
Error = "error"
)
type PaymentMethod string
const (
Check PaymentMethod = "check"
Pay PaymentMethod = "pay"
PreAuth PaymentMethod = "preauth"
)
type PaymentType string
const (
BankCard PaymentType = "card"
QIWI PaymentType = "qiwi"
SBP PaymentType = "sbp"
YandexPay PaymentType = "yandexpay"
ApplePay PaymentType = "applepay"
Paypal PaymentType = "paypal"
Webmoney PaymentType = "webmoney"
Mobile PaymentType = "mc"
WebmoneyWMR PaymentType = "webmoneyWmr"
Yandex PaymentType = "yandex"
SamsungPay PaymentType = "samsungpay"
GooglePay PaymentType = "googlepay"
)
type PaymentStatus string
const (
Success PaymentStatus = "success"
Wait PaymentStatus = "wait"
ErrorPay PaymentStatus = "error_pay"
ErrorCheck PaymentStatus = "error_check"
Refund PaymentStatus = "refund"
Secure PaymentStatus = "secure"
)