#stripeisawesome_api
1 messages ¡ Page 1 of 1 (latest)
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.
- stripeisawesome_error, 5 days ago, 22 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1259978128043016193
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi there!
Hello!
I think you're looking for payment_method, which you can expand when retrieving the PaymentIntent: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method
When you expand, you can look at the PaymentMethod's type value: https://docs.stripe.com/api/payment_methods/object#payment_method_object-type
thanks! I will verify this is what I'm looking for!
so in the case of a wire transfer, I am seeing a type in the payment_method of 'customer_balance'. However, my understanding is that a customer_balance transaction will get categorized in the 'card' category for payouts. Is that correct?
so my question is whether I have to have the logic on our side that looks at the payment method type and then maps them to the payout source balance type.
For example, the payout types are listed here:
https://docs.stripe.com/api/payouts/object#payout_object-type
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The object types listed in the link you sent is a much larger list. We also do manual payouts so we are determining the payout source type on our end before creating the payout in stripe.
customer_balance transaction will get categorized in the 'card' category for payouts. Is that correct?
That is not correct
so my question is whether I have to have the logic on our side that looks at the payment method type and then maps them to the payout source balance type.
I don't quite follow this. A customer can pay using Klarna for example but the payout (the funds you receive for that payment) will be paid to you either via a bank account or a card, depending on how you want to be paid out
Let me know if that makes sense
ok, I need to revamp my understanding here and if I have more questions I will ask them.
Sounds good!
ok, the balance object tells me how much is available for each source_type. This is before a payout even happens. The available source types are 'bank_account', 'card', and 'fpx'.
We manually create one payout per available source type. With payment intents, how does one use the api to determine that a 'customer_balance' payment method should map to a 'card' balance in stripe?
Okay, let's take a step back for a second
If you currently use PaymentIntents and PaymentMethods only and a customer pays with the us_bank_account payment method type, these funds will all get routed to your card balance
ok
currently we are using the sources api, in production.
is it the same in that case?
No
So if you're using Sources, you'll see that funds that come from ACH debit payments will be funneled to your bank_account sub balance, while funds that use all other payment method types will go to your card sub balance
when using payment intents, will everything funnel to 'card' for payouts? Including funds that came through the bank transfer api and are identified as customer balance payment methods?
Yes
oh, this is super helpful!
so once we are cut over fully to payment intents, we will only ever have a 'card' sub balance?
Only the card sub balance will have a non-zero amount, yes
alright, so it makes total sense now that I can't find that information anymore via the api because it would always be card. Thanks for your help and extra work to make sure I understand.
No worries, happy to help!