feat(payment): add support for CryptoSaaS payment platform and enhance configuration handling

This commit is contained in:
Chang lue Tsen
2025-09-06 12:22:39 -04:00
parent 47446ef410
commit 4d95834c22
7 changed files with 157 additions and 45 deletions
+12 -1
View File
@@ -9,10 +9,12 @@ const (
AlipayF2F
EPay
Balance
UNSUPPORTED
CryptoSaaS
UNSUPPORTED Platform = -1
)
var platformNames = map[string]Platform{
"CryptoSaaS": CryptoSaaS,
"Stripe": Stripe,
"AlipayF2F": AlipayF2F,
"EPay": EPay,
@@ -68,5 +70,14 @@ func GetSupportedPlatforms() []types.PlatformInfo {
"key": "Key",
},
},
{
Platform: CryptoSaaS.String(),
PlatformUrl: "https://t.me/CryptoSaaSBot",
PlatformFieldDescription: map[string]string{
"endpoint": "API Endpoint",
"account_id": "Account ID",
"secret_key": "Secret Key",
},
},
}
}