()
| 29 | } |
| 30 | |
| 31 | func PayMethods2JsonString() string { |
| 32 | jsonBytes, err := json.Marshal(PayMethods) |
| 33 | if err != nil { |
| 34 | return "[]" |
| 35 | } |
| 36 | return string(jsonBytes) |
| 37 | } |
| 38 | |
| 39 | func ContainsPayMethod(method string) bool { |
| 40 | for _, payMethod := range PayMethods { |