在Paypal REST API上设置接收方电子邮件

时间:2014-04-10 20:00:32

标签: api paypal payment-gateway

我使用Paypal REST API来管理我的网络应用程序上的付款

var payment = {
  "intent": "sale",
  "payer": {
    "payment_method": "paypal"
  },
  //"receiver_email":  "business@place.fr",
  "redirect_urls": {
    "return_url": "http://yoururl.com/execute",
    "cancel_url": "http://yoururl.com/cancel"
  },

  "transactions": [{
    "item_list": {
        "items": [{
            "name": "item",
            "sku": "item",
            "price": "1.00",
            "currency": "USD",
            "quantity": 1
        }]
    },
    "amount": {
        "currency": "USD",
        "total": "1.06",
        "details": {
          "subtotal": "1.00",
          "tax": "0.03",
          "shipping": "0.03"
        }
    },
    "description": "This is the payment description."
  }]
};

paypal.payment.create(payment, function (error, payment) { ... }

但我可以找到设置付款接收方电子邮件的方法。所有付款都转到帐户链接到我的Paypal应用程序。

谢谢

1 个答案:

答案 0 :(得分:0)

目前,这不是PayPal REST API中支持的功能。

您可以使用权限API为其他用户运行DoDirectPayment请求。但是,用户必须获得Payments Pro的批准。