()
| 65 | } |
| 66 | |
| 67 | func getMinTopup() int64 { |
| 68 | minTopup := setting.MinTopUp |
| 69 | if !common.DisplayInCurrencyEnabled { |
| 70 | dMinTopup := decimal.NewFromInt(int64(minTopup)) |
| 71 | dQuotaPerUnit := decimal.NewFromFloat(common.QuotaPerUnit) |
| 72 | minTopup = int(dMinTopup.Mul(dQuotaPerUnit).IntPart()) |
| 73 | } |
| 74 | return int64(minTopup) |
| 75 | } |
| 76 | |
| 77 | func RequestEpay(c *gin.Context) { |
| 78 | var req EpayRequest |
no outgoing calls
no test coverage detected