MCPcopy Create free account
hub / github.com/53AI/53AIHub / isValidPayType

Function isValidPayType

api/controller/pay_setting.go:430–432  ·  view source on GitHub ↗

isValidPayType checks if the payment type is valid

(payType int)

Source from the content-addressed store, hash-verified

428
429// isValidPayType checks if the payment type is valid
430func isValidPayType(payType int) bool {
431 return payType >= model.PayTypeWechat && payType <= model.PayTypeAlipay
432}
433
434// processWechatConfig processes and validates WeChat payment configuration
435func processWechatConfig(payConfig string) (string, error) {

Callers 4

CreatePaySettingFunction · 0.85
UpdatePaySettingFunction · 0.85
GetPaySettingByTypeFunction · 0.85
CreateOrderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected