#comers

1 messages · Page 1 of 1 (latest)

pine bloomBOT
clear sluice
#

Hi there!

#

Ask your question in this thread

mild shard
#

Hi! When I create Session object using Session.create with params, paymentIntent is not available anymore. I'm using java with stripe version 22.18.0. I was using stripe 20.6 before. example sessionid is: cs_live_a1Izj1zZLtCVPdD1CGe6xdsJdwyFpJAyMOEvqGivphVocea0bi4B5s8bPW

clear sluice
#

Can you clarify what you mean by "paymenIntent is not available anymore"? paymentIntent was never a parameter for creating a Checkout Session

#

There is payment_intent_data...

#

Is that what you are thinking of?

mild shard
#

I mean previous I used to receive a paymentIndentId from created session, and then I use the paymentIndentId to charge the payment, but now when I create session the paymentIndentId is null

clear sluice
#

Ah I see

#

So yeah that was never how Checkout was designed to work. And to be able to support more PaymentMethods we now create the PaymentIntent on Checkout completion. If you are going to go that route then you should be creating a PaymentIntent directly, not a Checkout Session. This changed with the release of the 2022-08-01 API Version: https://stripe.com/docs/upgrades#2022-08-01

mild shard
#

Ok! So if I wish to make payment work again without make changes in code then I should change back to the previous library?

clear sluice
#

Yeah you can version your requests to an earlier API Version if you want

mild shard
#

Ok thank you for help! I will see what I can do, thank you!