【问题标题】:Stripe .Net - Getting cards from customer objectStripe .Net - 从客户对象中获取卡片
【发布时间】:2019-10-28 21:15:37
【问题描述】:

我正在尝试在 Stripe.Net 中检索客户的卡片列表

their documentation 中提到卡可以在Sources.data 下找到。

但是,我没有在来源下看到属性“数据”。

我在这里错过了演员或其他什么吗?

【问题讨论】:

    标签: .net stripe-payments


    【解决方案1】:

    好的,找到了。

    我必须将其转换为“来源”,然后我才能访问 Card 对象。

    Stripe.Customer customer = _customerService.Get(id);
    Stripe.Source source = customer.DefaultSource as Stripe.Source;
    Stripe.SourceCard card = source.Card;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-25
      • 2019-01-11
      • 2020-03-28
      • 1970-01-01
      • 2018-03-04
      • 2020-08-14
      • 2015-12-19
      • 2015-08-07
      相关资源
      最近更新 更多