#Linas
1 messages ยท Page 1 of 1 (latest)
You can add the Checkout Session's ID to the URL and look it up whent he user navigates to your next page. Unfortunately we don't offer this for arbitrary IDs like the customer or payment intent but the session ID should be helpful here https://stripe.com/docs/payments/checkout/custom-success-page
thank you for example.
And if i need also retrieve transaction id. I guess, i have to take payment id and make one more call to stripe ?
*payment_intent_id
You will need to retrieve it through the Checkout Session but that won't need to take another API call
If you just need the ID, that will be on the Checkout Session by default. If you want more data from that payment intent you can use expansion to get the full payment intent object to come back with the checkout session https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i do not see TRANSACTION_ID in checkout session object.
The Payment intent's ID will be under the payment_intent field on the checkout session object https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is this a custom ID that you are setting? "Transaction" objects in Stripe are a very different thing https://stripe.com/docs/api/financial_connections/transaction
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 payment intent and its charge will be the Stripe objects that represents the payment that the session collected
If those aren't what you are looking for, can you show me an example of where this ID shows up for you?
i was able to expand object with Payment Intent and here i found transaction id.
thank you.
ah, one more basic question about Stripe Checkout. If we sell two products, i see, that stripe combine items and make one charge. Is there a way to have two separate charges ?
Not with Checkout unfortunately. You would need to either do two separate Checkout Sessions, or make your own custom page that makes two charges
Can you tell me more about why you want to charge these items separately here?
for better refund management.
for support would be more easy to issue refund
for affiliate tracking, which releis on transaction id
would be more easy pass these refunds to affiliate tracking software
because now, if we sell 2 products and issue refund for one product (but transaction id is the same) make a bit mess in the system.
We do allow partial refunds, so I think our recommended path here would be to do this with one charge and find a way to differentiate the refunds.
You can do it either way, we just typically find that it is easier to not have to deal with extra edge cases like one payment succeeding and the other failing and so on
yes, actually i need invoice_id, not charge id.
But with Stripe Checkout process, invoices aren't used right ?
Hi ๐
I"m stepping in as @frosty salmon needs to go. Invoicing using Checkout is in development but not currently released. If you hare using Checkout in subscription mode then it will result in an Invoice but not if you are using payment mode.
so, as a workround i could do one time subscription?
That would be a lot of overhead. Is there a particular reason you need to generate invoices?