refactor(payment): 移除ApplePay支付平台支持并整合到Stripe
Build docker and publish / build (20.15.1) (push) Has been cancelled

将ApplePay支付方式整合到Stripe平台处理,移除独立的ApplePay平台代码
简化支付逻辑,统一通过Stripe处理所有支付方式
This commit is contained in:
2025-12-09 00:58:03 -08:00
parent d95911d6bd
commit a80d6af035
3 changed files with 10 additions and 31 deletions
+1 -12
View File
@@ -11,7 +11,6 @@ const (
Balance
CryptoSaaS
AppleIAP
ApplePay
UNSUPPORTED Platform = -1
)
@@ -22,7 +21,6 @@ var platformNames = map[string]Platform{
"EPay": EPay,
"balance": Balance,
"AppleIAP": AppleIAP,
"ApplePay": ApplePay,
"unsupported": UNSUPPORTED,
}
@@ -51,7 +49,7 @@ func GetSupportedPlatforms() []types.PlatformInfo {
"public_key": "Publishable key",
"secret_key": "Secret key",
"webhook_secret": "Webhook secret",
"payment": "Payment Method, only supported card/alipay/wechat_pay",
"payment": "Payment Method, only supported card/alipay/wechat_pay/apple_pay",
},
},
{
@@ -94,14 +92,5 @@ func GetSupportedPlatforms() []types.PlatformInfo {
"environment": "Environment: Sandbox/Production",
},
},
{
Platform: ApplePay.String(),
PlatformUrl: "https://stripe.com",
PlatformFieldDescription: map[string]string{
"public_key": "Publishable key",
"secret_key": "Secret key",
"webhook_secret": "Webhook secret",
},
},
}
}