#million-checkout-objects
1 messages · Page 1 of 1 (latest)
million-checkout-objects
@brittle tulip I recommend watching https://www.youtube.com/watch?v=CUAY6IQcVQM maybe to understand the link between objects in our API
But overall you can obtain all of this through our API starting from the Checkout Session object https://stripe.com/docs/api/checkout/sessions/object and then going down the links to the customer property or payment_intent property, etc.
Well; the reason I'm trying to grab a cs token is because I use a third-party Stripe-affiliated app (if important, "Upgrade.Chat"), and I'm not given any specifics except for the 3 fields I mentioned (chargeid, customerid, and txid) (infact, the service doesn't actually give any of that, I rely on Zapier to provide that information), so I'm not actually able to grab the Checkout Session object because I don't control the website that starts or ends the checkout session.
Sure but the logic is the same. I can explain how our API works, developer to developer. This Discord server is aimed at developers building their own integration with their own code.
If you use a third-party, you would reach out to their support team for deeper help. I can only help with the Stripe API itself
that's fair, the 3rd party support server didn't do much :P, but thanks for the help! i'll try to read the apis again like its no tomorrow to see if i can find anything, thanks again for helping me find where to start :)
Do you have a specific question?
Like right now you said "how do I find those objects" so I explained and then you said "I can't, I use Zapier".
I guess my question would be; given any of the 3 fields (txid, customerid, chargeid), is there a way I can get a CS object?
Yes and no, you have to spend the time to understand our API and how each object connects to other.
A Checkout Session cs_test_123 can create a PaymentIntent pi_123. A PaymentIntent can create a Charge ch_123. A Charge can have a BalanceTransaction to represent the money movement `txn_123.
So if you have a txn_123 you use the Retrieve Balance Transaction API https://stripe.com/docs/api/balance/balance_retrieve to get a new BalanceTransaction object https://stripe.com/docs/api/balance/balance_transaction. That has a source property with the original object that created it so it can be source: 'ch_123' that would be the Charge object.
You can use the Retrieve Charge API https://stripe.com/docs/api/charges/retrieve and look at the payment_intent property that is the pi_123, etc.