【发布时间】:2021-02-01 02:23:07
【问题描述】:
我正在尝试获取附加到给定客户的付款方式。我最近升级到了Stripe Java library 的2020.19.0 版本,我正在关注他们提出的the example。
问题在于 Java 库似乎无法识别 PaymentSource 对象有任何参数:
Map<String, Object> params = Maps.newHashMap();
params.put("object", "card");
params.put("limit", 100);
// Get the credit cards
List<PaymentSource> cards =
customer.getSources().list(params).getData();
for (PaymentSource c : cards) {
c.getObject(); // not recognized in IDE
}
还有其他人遇到这种情况吗?
【问题讨论】:
标签: java gradle stripe-payments