#hardik-sources
1 messages · Page 1 of 1 (latest)
cus_L7S4LqNxpWUOsD
try expanding [0] the sources [1] parameter when retrieving the Customer
[0] https://stripe.com/docs/api/expanding_objects
[1] https://stripe.com/docs/api/customers/object#customer_object-sources
How to add expanded object in customer = await stripe.customers.retrieve(customerId);
Example
const customer = await stripe.customers.retrieve(
'cus_J0gyji8z6aSVB',
{
expand: ["sources"]
}
);
tx