We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69a4e4f commit 11edee8Copy full SHA for 11edee8
1 file changed
routes/keyManagement.ts
@@ -80,7 +80,7 @@ keys
80
api_key,
81
};
82
stripe.customers
83
- .retrieve(customer_id)
+ .retrieve(customer_id, {expand: ['default_source']})
84
.then((customer) => {
85
const source = (customer as Stripe.Customer).default_source as Stripe.Card;
86
toReturn.credit_brand = source?.brand;
0 commit comments