#million-checkout-objects

1 messages · Page 1 of 1 (latest)

pliant hollyBOT
amber silo
#

million-checkout-objects

brittle tulip
# amber silo <@456226577798135808> I recommend watching <https://www.youtube.com/watch?v=CUAY...

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.

amber silo
#

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

brittle tulip
amber silo
#

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".

brittle tulip
amber silo
#

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.