1

如何将 orderid/itemno 发送到 paypal 并返回我的网站。我想更新已购买的 orderid

Token ID 或 CORRELATION ID 或 TRANSACTIONID 的用途是什么?

API 工作正常

返回结果

Array
(
    [TOKEN] => EC-2R626219M62454427
    [SUCCESSPAGEREDIRECTREQUESTED] => false
    [TIMESTAMP] => 2013-11-04T09:38:47Z
    [CORRELATIONID] => 2441b978c048b
    [ACK] => Success
    [VERSION] => 104.0
    [BUILD] => 8334781
    [TRANSACTIONID] => 7JM13596VP514480B
    [TRANSACTIONTYPE] => expresscheckout
    [PAYMENTTYPE] => instant
    [ORDERTIME] => 2013-11-04T09:38:46Z
    [AMT] => 1.00
    [FEEAMT] => 0.33
    [TAXAMT] => 0.00
    [CURRENCYCODE] => USD
    [PAYMENTSTATUS] => Pending
    [PENDINGREASON] => paymentreview
    [REASONCODE] => None
    [PROTECTIONELIGIBILITY] => Ineligible
    [INSURANCEOPTIONSELECTED] => false
    [SHIPPINGOPTIONISDEFAULT] => false
    [PAYMENTINFO_0_TRANSACTIONID] => 7JM13596VP514480B
    [PAYMENTINFO_0_TRANSACTIONTYPE] => expresscheckout
    [PAYMENTINFO_0_PAYMENTTYPE] => instant
    [PAYMENTINFO_0_ORDERTIME] => 2013-11-04T09:38:46Z
    [PAYMENTINFO_0_AMT] => 1.00
    [PAYMENTINFO_0_FEEAMT] => 0.33
    [PAYMENTINFO_0_TAXAMT] => 0.00
    [PAYMENTINFO_0_CURRENCYCODE] => USD
    [PAYMENTINFO_0_PAYMENTSTATUS] => Pending
    [PAYMENTINFO_0_PENDINGREASON] => paymentreview
    [PAYMENTINFO_0_REASONCODE] => None
    [PAYMENTINFO_0_PROTECTIONELIGIBILITY] => Ineligible
    [PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE] => None
    [PAYMENTINFO_0_SECUREMERCHANTACCOUNTID] => YYA4BXSJ722PJ
    [PAYMENTINFO_0_ERRORCODE] => 0
    [PAYMENTINFO_0_ACK] => Success
)
4

1 回答 1

1

CorrelationID:PayPal 用于在日志中查找确切 API 请求的内部标识符。
TransactionID:不言自明;这是已创建事务的事务 ID。
令牌:用于将买家重定向到 PayPal 网站的临时令牌。

您可能想要的是PAYMENTREQUEST_0_CUSTOM参数。您可以PAYMENTREQUEST_0_CUSTOM在初始SetExpressCheckoutAPI 调用中指定。然后当DoExpressCheckoutPayment被调用时,在响应中返回这个值。

更多详细信息在SetExpressCheckout API 文档中。

于 2013-11-04T10:00:16.883 回答