英文:
How do I retrieve a Stripe Paymentintent id from a Checkout Session?
问题
Stripe以前在创建结账会话时返回Paymentintent id。
然而,自2022年11月15日的API更新后,不再如此。
相反,一个新的事件"确认结账会话已完成的请求"返回Paymentintent id。
我是否有办法使用原始结账会话事件来访问Paymentintent id?
英文:
Stripe used to return a Paymentintent id when a checkout session was created.
However, since the 2022-11-15 API update, this is no longer the case.
Instead a new event "A request to confirm a Checkout Session completed" returns the Paymentintent id.
Is there any way I could access the Paymentintent id using the original checkout session event?
答案1
得分: 1
No, this is an expected change that was introduced in API version 2022-08-01
source.
Checkout Sessions no longer create a Payment Intent when they are created, instead they create it when they are confirmed, so it is not possible to get the ID of the associated Payment Intent from the Checkout Session creation request's response, as no associated Payment Intent has been created at that point.
英文:
No, this is an expected change that was introduced in API version 2022-08-01
source.
Checkout Sessions no longer create a Payment Intent when they are created, instead they create it when they are confirmed, so it is not possible to get the ID of the associated Payment Intent from the Checkout Session creation request's response, as no associated Payment Intent has been created at that point.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论