#glorious_fawn_93775

1 messages · Page 1 of 1 (latest)

thick lintelBOT
earnest star
#

Hi there 👋 sounds like you're talking about two different types of objects here.

Payment Intents are the objects that are used to facilitate a Customer making a payment. These are the ones that can have a failed status, and are what you're seeing in the dashboard view:
https://stripe.com/docs/api/payment_intents
https://stripe.com/docs/payments/paymentintents/lifecycle

Balance Transactions are objects that represent changes being made to your Stripe account balance. Failed payments will not generate a Balance Transaction because there aren't funds to be moved into your account from them:
https://stripe.com/docs/api/balance_transactions

#

I'm not sure I'm grasping what you're asking in part 3, do you have an example of objects in the state you're describing that I could take a closer look at?

spark dew
#

Hi toby, apologize for the vagueness on 3.

For my snapshot of the dashboards, if you skip the failed and succeeded ones on the top and compared the later pending transactions line one by one to the other snapshot directly from console output, there is an exact match. My question is where do I find the succeeded ones as well since it seems BalanceTransation only contains the pending ones.

earnest star
#

If you list more than 10 Balance Transactions, do you see any succeeded ones if you list more than that? You can retrieve up to 100 in a single request.

thick lintelBOT
spark dew
#

actually, all succeeded payments are tagged as status=pending and type=charge. is it how it is designed to work? could you elaborate more on the difference between a charge and a payment?

earnest star
#

Yes that could be expected. Card payments for instance instantly determine whether they succeed or not, but still take time to move funds to your Stripe balance. Whereas ACH payments take time to know whether they will succeed, so for those the Payment Intents enter and remain in a processing status until the outcome is known.

When you say "payment" are you referring to a Payment Intent? (There are scenarios where Payment objects exist, so just trying to be specific to make sure we're talking about the same types of objects)

spark dew
#

I'm referring to the ones that are in https://dashboard.stripe.com/payments, and I assume it is a combinations of multiple object types, not just payment intent and balance transactions. Do you have a full list of object type that are listed in that dashboard?

#

also, can I say that for PaymentIntent with status != processing and succeeded, they are deemed and displayed as failed in the dashboard?

earnest star
#

I'm not exaclty sure, we aren't familiar with the dashboard side of things that much, we primarily focus on helping developers with their questions about interacting with our API. That being said, I'm pretty sure the payments tab you're referring to only shows Payment Intents or Charges if the Charge wasn't created automatically by a Payment Intent.

earnest star
spark dew
#

actually, if you look at the dashboard, these payment intents with status = requires_payment_method have been marked as failed.

livid badger
#

Hello! I'm taking over and catching up...

#

The Dashboard and the API often do not have a 1:1 mapping of information. A Payment Intent keeps track of an attempt to pay over time. A Payment Intent can have several failures associated with it, for example. When a payment attempt fails it will show as failed in the Dashboard, but the Payment Intent's status reverts to requires_payment_method because when a Payment Method fails it's removed from the Payment Intent so a new one can be added for the next attempt.

spark dew
#

ok, so if I want to get the total number of failed payments for all reasons, how would you recommend getting the number? which endpoints do you recommend using?

livid badger
#

When payment is attempted with a Payment Intent it creates a Charge to represent that attempt. You can list Charges to see details about individual attempts, including failed ones: https://stripe.com/docs/api/charges/list

spark dew
#

I see. It seems I was using the wrong endpoint for my purpose...

#

my mind is still 🤯 because of all the new concepts you guys introduced. is there another doc on the lifecycles or flowcharts of how payment and related objects relate to each other in addition to the link toby attached above? https://stripe.com/docs/payments/paymentintents/lifecycle

livid badger
spark dew
#

it's my first time using Stripe, just bear with my limited knowledge.

#

Will do. Thank you for the helps!