feat(pay-v2): P8 Task3 订阅创建 + 首期激活(subscription.created)+ 端点

This commit is contained in:
wangjia
2026-07-10 17:59:35 +08:00
parent 83e3551609
commit 4c242607a7
12 changed files with 411 additions and 11 deletions
+3 -2
View File
@@ -46,12 +46,13 @@ type Gateway struct {
products ProductResolver
webhook WebhookEnqueuer
region string
subs *store.SubscriptionStore
}
func New(orders *store.OrderStore, refunds *store.RefundStore, providers *provider.Registry, picker accounts.Picker,
products ProductResolver, webhook WebhookEnqueuer, region string) *Gateway {
products ProductResolver, webhook WebhookEnqueuer, region string, subs *store.SubscriptionStore) *Gateway {
return &Gateway{orders: orders, refunds: refunds, providers: providers, picker: picker,
products: products, webhook: webhook, region: region}
products: products, webhook: webhook, region: region, subs: subs}
}
type CreateOrderInput struct {