asp.net-core - Stripe.StripeException: 'Issuing API 目前处于私有测试阶段。请访问 https://stripe.com/issues 了解更多信息。
问题描述
返回条带支付历史列表时出错,下面是代码和图片:
public TransactionService StripeGetListTransaction()
{
ResponseModel response = new ResponseModel();
StripeConfiguration.ApiKey = _paymentSettings.Value.SecretKey;
var options = new TransactionListOptions
{
Limit = 3,
};
var service = new TransactionService();
service.List(options);
return service;
}
解决方案
我认为您使用了错误的服务类。对于列出余额交易,您应该BalanceTransactionService
使用
var options = new BalanceTransactionListOptions
{
Limit = 3,
};
var service = new BalanceTransactionService();
service.List(options);
有关更多信息,请参阅文档
推荐阅读
- javascript - for循环中的Firestore批处理仅存储最后一个文档
- c++20 - Clang:gnu 标准库需要 -fcoroutines 但 clang 只支持 -fcoroutines-ts
- node.js - eslint 导入导出错误
- google-apps-script - 来自另一个电子表格的动态下拉列表
- salesforce - 使用 tSalesForceConnection 组件从 Talend-SalesForce 连接时的时间延迟
- javascript - 带有多个等待或承诺的循环
- python - 使用 tkinter 返回文件路径
- vbscript - 可以在 .wsh 文件中指定哪些选项?
- keycloak - 使用 Keyclock:如何为为两家公司工作的单个用户定义不同的角色集?
- python - 在 Python 中定义用于调用 CPLEX 的目录