首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >PayPal Orders purchase_units: reference_id对custom_id?

PayPal Orders purchase_units: reference_id对custom_id?
EN

Stack Overflow用户
提问于 2021-04-27 18:43:09
回答 1查看 1.6K关注 0票数 3

我正在努力设置订单,并对文档感到有点困惑,特别是这两个独立的id提供给purchase_units

文件清单如下:

代码语言:javascript
运行
复制
reference_id string
The API caller-provided external ID for the purchase unit. Required for multiple purchase units when you must update the order through PATCH. If you omit this value and the order contains only one purchase unit, PayPal sets this value to default.

代码语言:javascript
运行
复制
custom_id string
The API caller-provided external ID. Used to reconcile client transactions with PayPal transactions. Appears in transaction and settlement reports but is not visible to the payer.

他们都有着相同的The API caller-provided external ID位,这让我感到困惑。似乎其中之一是我想要传递的id,以跟踪另一边的顺序,custom_id听起来更像,但是reference_id应该是什么呢?听起来基本上是一样的,只是我想给它的id,这样我可以在以后跟踪它。

如果我所有的订单都只有一个purchase_item,那么是否有理由使用reference_id

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-27 18:47:26

reference_id的目的是区分单个顺序的多个purchase_item。因为你所有的人都会有一个,所以没有理由使用它。

根据任何协调需要使用custom_id,因为它将作为PayPal事务的一部分存储。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67288935

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档