我使用Paypal ExpressCheckout方法进行付款。我需要使用Express Checkout with Parallel Payments支付多个商家来增强我的付款。我已经完成了教程。当我提交时,我收到错误。我发送的数据是
&METHOD=SetExpressCheckout
&RETURNURL=http%3A%2F%2Fwww.mydomain.net%2Fpaypal_process.php
&CANCELURL=http%3A%2F%2Fwww.mydomain.net%2Fcancel.php
&PAYMENTREQUEST_0_CURRENCYCODE=SGD
&PAYMENTREQUEST_0_AMT=50
&PAYMENTREQUEST_0_ITEMAMT=50
&PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=email@mydomain.com.sg
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&PAYMENTREQUEST_0_PAYMENTREQUESTID=CART26488-PAYMENT0
&L_PAYMENTREQUEST_0_NAME0=Depart San Jose Feb 12 at 12:10PM Arrive in Baltimore at 10:22PM
&L_PAYMENTREQUEST_0_NUMBER0=Flight 522
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_AMT0=50
&L_PAYMENTREQUEST_0_DESC0=SJC Terminal 1. Flight time: 7 hours 12 minutes
错误:
Error : This account is not approved for the authorization service. To enable this service, contact PayPal customer service
Array
(
[TIMESTAMP] => 2014%2d10%2d20T09%3a36%3a03Z
[CORRELATIONID] => 4a7ab68babd8b
[ACK] => Failure
[VERSION] => 109%2e0
[BUILD] => 13443904
[L_ERRORCODE0] => 11623
[L_SHORTMESSAGE0] => This%20account%20is%20not%20approved%20for%20the%20authorization%20service%2e
[L_LONGMESSAGE0] => This%20account%20is%20not%20approved%20for%20the%20authorization%20service%2e%20To%20enable%20this%20service%2c%20contact%20PayPal%20customer%20service
[L_SEVERITYCODE0] => Error
)
我已经通过互联网浏览了这个错误。但我找不到那个。请帮助我实现这一目标。
答案 0 :(得分:3)
从完全基础的冲浪后,我找到了答案。 PAYMENTREQUEST_0_PAYMENTACTION参数值应在发送之前进行url编码。
"PAYMENTREQUEST_0_PAYMENTACTION='".urlencode("Sale")
答案 1 :(得分:-1)
这是因为未确认电子邮件地址PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID
email@mydomain.com.sg
。
尝试确认电子邮件地址并再次执行API调用。