首页 > 解决方案 > 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;

        }

在此处输入图像描述

标签: asp.net-corestripe-payments

解决方案


我认为您使用了错误的服务类。对于列出余额交易,您应该BalanceTransactionService使用

var options = new BalanceTransactionListOptions
{
  Limit = 3,
};
var service = new BalanceTransactionService();
service.List(options);

有关更多信息,请参阅文档


推荐阅读