gpt4 book ai didi

api - 如何获取 Paypal API V2 的交易 ID

转载 作者:太空宇宙 更新时间:2023-11-03 15:44:42 25 4
gpt4 key购买 nike

如何从 Paypal V2 API 中找到交易 ID?我想为买家提供交易 ID 以跟踪他们的交易。

我可以获取订单 ID 和捕获 ID,但无法找到交易 ID。只有已弃用的 V1 API 才能获取交易 ID。 V2 不再可用吗?

仅供引用,V1 的答案在这里 Paypal Transaction ID

最佳答案

In the  PayPal V2 API, there are three APIs are normally associated:

1) Create authorization - https://developer.paypal.com/docs/api/overview/#authentication-and-authorization

2) Create order - https://developer.paypal.com/docs/api/orders/v2/#orders_create

3) Capture order - https://developer.paypal.com/docs/api/orders/v2/#orders_capture
You can get the Transaction ID from this API response. It should be under
"payments": {
"captures": [
{
"id": "3C679366HH908993F",

关于api - 如何获取 Paypal API V2 的交易 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56164880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com