- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
(参见 https://developer.paypal.com/docs/integration/direct/identity/seamless-checkout/)
没有 PAYERID,我无法调用 DoExpressCheckoutPayment。
我在下面附上了请求/响应数据。请注意,GetExpressCheckoutDetails 不包含 PAYERID。为什么会发生这种情况?
谢谢!
SetExpressCheckout Request:
array (size=23)
'METHOD' => string 'SetExpressCheckout' (length=18)
'PAYMENTREQUEST_0_ITEMAMT' => string '329.00' (length=6)
'PAYMENTREQUEST_0_AMT' => string '329.00' (length=6)
'PAYMENTREQUEST_0_TAXAMT' => string '0.00' (length=4)
'PAYMENTREQUEST_0_SHIPPINGAMT' => string '0.00' (length=4)
'PAYMENTREQUEST_0_CURRENCYCODE' => string 'USD' (length=3)
'RETURNURL' => string 'https://some.url/' (length=39)
'CANCELURL' => string 'https://some.url/' (length=25)
'VERSION' => string '106.0' (length=5)
'USER' => string 'secure-paypal_api1.somedomain.com' (length=30)
'PWD' => string 'XXXXXXXXXXXXXXXXX' (length=16)
'SIGNATURE' => string 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (length=56)
'NOSHIPPING' => string '1' (length=1)
'PAYMENTREQUEST_0_PAYMENTACTION' => string 'Sale' (length=4)
'HDRIMG' => string 'https://www.some.url/.jpg' (length=70)
'EMAIL' => string 'foo@foo.com' (length=23)
'CUSTOMERSERVICENUMBER' => string '1-111-111-1111' (length=14)
'ALLOWNOTE' => string '0' (length=1)
'IDENTITYACCESSTOKEN' => string '2nd3CS9HG1EWzTQGy6l.4n7CsilVWgkqn20bTuUfSXX' (length=43)
'L_PAYMENTREQUEST_0_NAME0' => string 'or3333' (length=6)
'L_PAYMENTREQUEST_0_AMT0' => string '329.00' (length=6)
'L_PAYMENTREQUEST_0_DESC0' => string 'Product name foobar' (length=31)
'L_PAYMENTREQUEST_0_QTY0' => string '1' (length=1)
SetExpressCheckout Response:
array (size=6)
'TOKEN' => string 'EC-4W147554UR614711B' (length=20)
'TIMESTAMP' => string '2014-01-17T20:41:50Z' (length=20)
'CORRELATIONID' => string '4ef48694990' (length=11)
'ACK' => string 'Success' (length=7)
'VERSION' => string '106.0' (length=5)
'BUILD' => string '9285531' (length=7)
GetExpressCheckoutDetails Request:
array (size=6)
'METHOD' => string 'GetExpressCheckoutDetails' (length=25)
'TOKEN' => string 'EC-4W147554UR614711B' (length=20)
'VERSION' => string '106.0' (length=5)
'USER' => string 'secure-paypal_api1.sylvane.com' (length=30)
'PWD' => string 'XXXXXXXXXXXXXXXX' (length=16)
'SIGNATURE' => string 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (length=56)
GetExpressCheckoutDetails Response:
array (size=44)
'TOKEN' => string 'EC-4W147554UR614711B' (length=20)
'CHECKOUTSTATUS' => string 'PaymentActionNotInitiated' (length=25)
'TIMESTAMP' => string '2014-01-17T20:41:50Z' (length=20)
'CORRELATIONID' => string '605766387f780' (length=13)
'ACK' => string 'Success' (length=7)
'VERSION' => string '106.0' (length=5)
'BUILD' => string '9285531' (length=7)
'CURRENCYCODE' => string 'USD' (length=3)
'AMT' => string '329.00' (length=6)
'ITEMAMT' => string '329.00' (length=6)
'SHIPPINGAMT' => string '0.00' (length=4)
'HANDLINGAMT' => string '0.00' (length=4)
'TAXAMT' => string '0.00' (length=4)
'INSURANCEAMT' => string '0.00' (length=4)
'SHIPDISCAMT' => string '0.00' (length=4)
'L_NAME0' => string 'or2395' (length=6)
'L_QTY0' => string '1' (length=1)
'L_TAXAMT0' => string '0.00' (length=4)
'L_AMT0' => string '329.00' (length=6)
'L_DESC0' => string 'Product name foobar' (length=31)
'L_ITEMWEIGHTVALUE0' => string ' 0.00000' (length=10)
'L_ITEMLENGTHVALUE0' => string ' 0.00000' (length=10)
'L_ITEMWIDTHVALUE0' => string ' 0.00000' (length=10)
'L_ITEMHEIGHTVALUE0' => string ' 0.00000' (length=10)
'PAYMENTREQUEST_0_CURRENCYCODE' => string 'USD' (length=3)
'PAYMENTREQUEST_0_AMT' => string '329.00' (length=6)
'PAYMENTREQUEST_0_ITEMAMT' => string '329.00' (length=6)
'PAYMENTREQUEST_0_SHIPPINGAMT' => string '0.00' (length=4)
'PAYMENTREQUEST_0_HANDLINGAMT' => string '0.00' (length=4)
'PAYMENTREQUEST_0_TAXAMT' => string '0.00' (length=4)
'PAYMENTREQUEST_0_INSURANCEAMT' => string '0.00' (length=4)
'PAYMENTREQUEST_0_SHIPDISCAMT' => string '0.00' (length=4)
'PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED' => string 'false' (length=5)
'PAYMENTREQUEST_0_ADDRESSNORMALIZATIONSTATUS' => string 'None' (length=4)
'L_PAYMENTREQUEST_0_NAME0' => string 'or3333' (length=6)
'L_PAYMENTREQUEST_0_QTY0' => string '1' (length=1)
'L_PAYMENTREQUEST_0_TAXAMT0' => string '0.00' (length=4)
'L_PAYMENTREQUEST_0_AMT0' => string '329.00' (length=6)
'L_PAYMENTREQUEST_0_DESC0' => string 'Product name foobar' (length=31)
'L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0' => string ' 0.00000' (length=10)
'L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0' => string ' 0.00000' (length=10)
'L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0' => string ' 0.00000' (length=10)
'L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0' => string ' 0.00000' (length=10)
'PAYMENTREQUESTINFO_0_ERRORCODE' => string '0' (length=1)
最佳答案
即使您在 SetExpressCheckout 调用中传递了 IDENTITYACCESSTOKEN
,您仍然需要将买家重定向到 PayPal,以便他们可以批准付款。设置 IDENTITYACCESSTOKEN
允许买家跳过登录页面,使他们的流程更快,但他们仍然需要转到 PayPal 以批准付款。调用 SetExpressCheckout 后,将它们重定向到 https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token={token}
(其中 {token}
是来自 SetExpressCheckout 响应的 TOKEN
的值。
关于Paypal GetExpressCheckoutDetails 缺少 PAYERID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21195862/
我现在正在更改我的在线商店。我决定完全删除帐户...这样用户就可以直接使用 paypal 快速结帐并付款。 我先做 paypal 部分,然后我重定向回我的网站,让他们填写送货地址、账单地址,然后在提交
我正在使用 Paypal REST,PHP SDK 大师。这个问题涉及付款。 我需要知道如何获得 PayerID使用“credit_card”付款方式。 如果您在 samples/payments 下
(参见 https://developer.paypal.com/docs/integration/direct/identity/seamless-checkout/) 我们通过 OpenID(使用
我正在使用 PayPal iOS SDK。但我对 payerID 完全困惑。这是什么以及如何工作。鉴于它可能是 email 或 unique identifier 。我可以为每个付款人将其硬编码为 X
我正在为我的 iOS 应用开发支付结账功能。 服务器后端是用java写的。 用户在 PayPalPaymentViewController 中批准付款后,intent 为 authorize 的数据是
我的应用程序 Symfony 2.5 有问题。我想集成 Paypal Express 结帐但获取信息: PayPal-Response was not successful: Debug-Token:
我是一名优秀的程序员,十分优秀!