Paypal错误执行支付

时间:2016-09-05 19:58:08

标签: node.js paypal

我通过paypal nodejs sdk执行未来付款后无法执行付款。 首先我执行:

paypal.payment.create(transaction, config, function (error, payment) {
  if (error) {
    reject({error : error, success : false});
  } else {
    resolve(payment);
  }
});

然后

paypal.payout.create(transaction, function (error, payment) {
    if (error) {
      reject({error : error, success : false});
    } else {
      resolve(payment);
    }
  });

在这种情况下,我有: 付款退货错误:403

"error": {
"response": {
"name": "THIRD_PARTY_CALLS_FORBIDDEN",
"message": "An internal service error has occurred.",
"information_link": "https://developer.paypal.com/docs/api/payments.payouts-batch/#errors",
"httpStatusCode": 403
},
"httpStatusCode": 403
},
"success": false

1 个答案:

答案 0 :(得分:0)

也许您需要先申请该权限并先获得该权限? https://developer.paypal.com/docs/classic/permissions-service/ht_permissions-invoice/