#Linas

1 messages ยท Page 1 of 1 (latest)

river turretBOT
frosty salmon
mighty cave
#

thank you for example.

mighty cave
#

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

frosty salmon
#

You will need to retrieve it through the Checkout Session but that won't need to take another API call

mighty cave
#

i do not see TRANSACTION_ID in checkout session object.

frosty salmon
mighty cave
#

yes, but i need transaction_id

#

i wil ltry to expand object with "transaction"

frosty salmon
#

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?

mighty cave
#

i was able to expand object with Payment Intent and here i found transaction id.

#

thank you.

mighty cave
#

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 ?

frosty salmon
#

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?

mighty cave
#

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.

frosty salmon
#

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

mighty cave
#

yes, actually i need invoice_id, not charge id.

#

But with Stripe Checkout process, invoices aren't used right ?

void urchin
#

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.

mighty cave
#

so, as a workround i could do one time subscription?

void urchin
#

That would be a lot of overhead. Is there a particular reason you need to generate invoices?

mighty cave
#

not sure ,why we used invoice ids, i wil ltry to find out.

#

thank you for your help.