【发布时间】:2022-11-02 15:14:16
【问题描述】:
Stripe 文档here 描述了如何创建客户门户配置。
这是示例代码的样子:
StripeConfiguration.ApiKey = "....";
var options = new ConfigurationCreateOptions
{
BusinessProfile = new ConfigurationBusinessProfileOptions
{
Headline = "Cactus Practice partners with Stripe for simplified billing.",
},
Features = new ConfigurationFeaturesOptions
{
InvoiceHistory = new ConfigurationFeaturesInvoiceHistoryOptions
{
Enabled = true,
},
},
};
var service = new ConfigurationService();
await service.CreateAsync(options);
每次我想为我的客户生成客户门户会话时,我都不想点击 Stripe API 来创建新配置。
所以我的问题是,我可以缓存配置服务器端并为所有客户使用相同的客户门户配置吗?
还是对配置有某种到期或限制?
【问题讨论】:
标签: .net caching stripe-payments stripe-customer-portal