#comers
1 messages · Page 1 of 1 (latest)
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
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?
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
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
Ok! So if I wish to make payment work again without make changes in code then I should change back to the previous library?
Yeah you can version your requests to an earlier API Version if you want
https://stripe.com/docs/api/versioning for how to version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok thank you for help! I will see what I can do, thank you!