#nick-paymentmethod-expand
1 messages · Page 1 of 1 (latest)
Hi 👋
The Customer & Payment Method exist on the Connect Account, correct?
Yes - both the customer and payment method exist - it's just that when we retrieve the customer via the API, we don't see any payment methods/sources
We can see it if we log in to their dashboard
How are you makiing the API request?
We are making it via the Stripe Ruby gem, Stripe::Customer.retrieve(cust_id, stripe_account: acct_....)
Do you have an example API request ID you can share?
It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sure,
req_r7ZEwmXaPzo5wN
Thanks, taking a look
Okay and you are looking which Payment Method?
What happens if you use this API instead to list PMs by Customer? https://stripe.com/docs/api/payment_methods/customer_list
That is how I would recommend going about this. As long as you make sure to use the stripe_account header with the Connected Accounts' ID, you should be able to retrieve this payment method
Checking now
OK - we can see the payment method, but we can't see the sources, which is where we currently look for that info. Obviously, we can adjust a bit, but wondering why we can't see the source information in this case?
ARe you referring to this property? https://stripe.com/docs/api/customers/object#customer_object-sources
Yes, I believe so
In that case you will want to pass it as an expand parameter. You can see how to use that parameter in this doc: https://stripe.com/docs/expand
OK - thank you - we will keep experimenting and circle back if we can't figure it out. I appreciate your help!