#fatima_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1400201877353795827
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- fatima_docs, 21 hours ago, 9 messages
Hi there
Yes, all attached PaymentMethods would show up. The Customer's Cash Balance (the customer_balance payment method type) is not actually represented by a PaymentMethod so that wouldn't be returned.
what is it represented by?
You would use https://docs.stripe.com/api/cash_balance/retrieve to get that information
It is a balance directly associated to the Customer
What are you really trying to do here?
ok so we have a bunch of customers, for the most part they have a default payment set (usually credit card). but we have cases where a stripe customer is created and the payment method is "USD Cash Balance". Previously, we also had customers created with an ACH Credit Transfer as their default payment, but thats now deprecated.
in our app, when a customer looks at their page, if they have a linked Stripe customer, we display their billing profile. The billing profile only counts as "activated" or "real" if it has a payment method attached.
The issue i am facing is that customers with USD Cash Balance are showing as they dont have a billing profile, becuase its not listed as a payment type. So its assuming the customer didnt choose a payment method
I am looking for a way to still display these customers as having a billing profile. But a customer who in Stripe has nothing selected under Payment Methods, should behave as it does now and not show any billing profile
At the moment, our code just checks for payment methods and sources (deprecated). I guess i should expand it to look at cash balances too?
Yeah any new Customer though will have a Cash Balance.
So it really depends on how you want to handle it on your end.
what do you mean? Customer's automatically have a $0 balance? Or is it null until bank transfer is set as a Payment Method?
Ah actually I think available would be null if they have never used the Cash Balance.
So that could serve the same purpose
๐
when using the retrieve customer api, could I expand it to include cash balances? or would that have to be a seperate request
oh nice, thank you so much