我正在努力设置订单,并对文档感到有点困惑,特别是这两个独立的id提供给purchase_units
。
文件清单如下:
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.
和
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
发布于 2021-04-27 18:47:26
reference_id
的目的是区分单个顺序的多个purchase_item
。因为你所有的人都会有一个,所以没有理由使用它。
根据任何协调需要使用custom_id
,因为它将作为PayPal事务的一部分存储。
https://stackoverflow.com/questions/67288935
复制相似问题