Skip to content

Commit 36c603f

Browse files
authored
Merge pull request #1823 from littlewrite/feat_subscribe_sp1
新增 creem 支付
2 parents 1c582cd + ac3baac commit 36c603f

File tree

12 files changed

+1109
-5
lines changed

12 files changed

+1109
-5
lines changed

controller/topup.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ func GetTopUpInfo(c *gin.Context) {
5151
data := gin.H{
5252
"enable_online_topup": operation_setting.PayAddress != "" && operation_setting.EpayId != "" && operation_setting.EpayKey != "",
5353
"enable_stripe_topup": setting.StripeApiSecret != "" && setting.StripeWebhookSecret != "" && setting.StripePriceId != "",
54+
"enable_creem_topup": setting.CreemApiKey != "" && setting.CreemProducts != "[]",
55+
"creem_products": setting.CreemProducts,
5456
"pay_methods": payMethods,
5557
"min_topup": operation_setting.MinTopUp,
5658
"stripe_min_topup": setting.StripeMinTopUp,

0 commit comments

Comments
 (0)