MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetEpayClient

Function GetEpayClient

controller/topup.go:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func GetEpayClient() *epay.Client {
33 if setting.PayAddress == "" || setting.EpayId == "" || setting.EpayKey == "" {
34 return nil
35 }
36 withUrl, err := epay.NewClient(&epay.Config{
37 PartnerID: setting.EpayId,
38 Key: setting.EpayKey,
39 }, setting.PayAddress)
40 if err != nil {
41 return nil
42 }
43 return withUrl
44}
45
46func getPayMoney(amount int64, group string) float64 {
47 dAmount := decimal.NewFromInt(amount)

Callers 2

RequestEpayFunction · 0.85
EpayNotifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected