我創建了以下代碼來獲取客戶的所有卡:return stripe.customers.listSources(customerId, { object: "card", limit: 10}).then(cards => { if (cards) { res.status(200).send({ cards: cards.data }); return; } res .status(500) .send({ error: "error getting cards" });}) .catch(error => { console.log(error); res.status(500).send({ error: "error getting cards" }); });遵循本文檔:https://stripe.com/docs/api/cards/list我還向我的客戶添加了測試卡,這些卡在儀表板中可見:但 API 始終向我返回以下結果:{ object: 'list', data: [], has_more: false, url: '/v1/customers/<my_cus_id>/sources'}
Stripe.Customers.list源不返回任何內容
狐的傳說
2022-08-27 09:51:08