我正在尝试使用自适应支付 API 从我的企业 Paypal 账户向另一个 Paypal 账户汇款。 我创建了一个经典的 Paypal 应用程序,请求发送隐式付款的权限,并获得有条件地批准。 我正在使用我的企业帐户的 API 用户 ID、密码和签名,当我发出付款请求时,我使用与我的企业帐户关联的电子邮件地址。 可能值得一提的是,它是一个 Swiss Paypal 帐户。
然而,我收到一个错误:
[Error: Response ack is Failure. Check the response for more info]
{ responseEnvelope:
{ timestamp: '2013-12-13T05:21:53.825-08:00',
ack: 'Failure',
correlationId: '6b31a6a7cbf80',
build: '7935900' },
error:
[ { errorId: '550001',
domain: 'PLATFORM',
subdomain: 'Application',
severity: 'Error',
category: 'Application',
message: 'You do not have permission to execute this payment implicitly' } ],
httpStatusCode: 200 }
这是我的代码:
Paypal = require 'paypal-adaptive'
paypalSdk = new Paypal
userId : 'my userId'
password : 'my password'
signature : 'my signature'
appId : 'my appId'
payload =
senderEmail : 'my email'
requestEnvelope:
errorLanguage: 'en_US'
actionType : 'PAY'
currencyCode : 'CHF'
feesPayer : 'EACHRECEIVER'
memo : 'example'
returnUrl: "http://www.serviceathome.com?success=true"
cancelUrl: "http://www.serviceathome.com?success=false"
receiverList:
receiver : [
email: 'recipient email'
amount: '1.00'
]
paypalSdk.pay payload, (err, res) ->
if err?
console.error err
return console.error res
console.log res
最佳答案
Ita:我今天也遇到了同样的错误。我使用的是来自 Paypal Adaptive Payments 网站的示例代码,完全如图所示。我只是直接从示例代码中输入了 Paypal cURL 片段。我得到了和你一样的命令。我重新安装了 cURL 并确保安装了 SSL 证书。之后就直接工作了。
关于node.js - 通过 node.js 中的 Paypal 自适应支付 API 发送隐式支付时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20567689/