假設我的網站上有一個現金出頁面,其中包括PayPal現金出金系統,用戶可以在其中指定他/她的電子郵件。什麼是新的更新方式發送單一付款到指定的電子郵件?我需要使用哪種API?利用PayPal API向電子郵件發送單一付款
我已經約研究它了一個小時,我似乎無法找到一個妥善的方法,我已經看到了這一點:
curl -v https://api.sandbox.paypal.com/v1/payments/payouts?sync_mode=true \
-H "Content-Type: application/json" \
-H "Authorization: Bearer Access-Token" \
-d '{
"sender_batch_header":{
"sender_batch_id":"2014021801",
"email_subject":"You have a payout!",
"recipient_type":"EMAIL"
},
"items":[
{
"recipient_type":"EMAIL",
"amount":{
"value":"1.0",
"currency":"USD"
},
"note":"Thanks for your patronage!",
"sender_item_id":"201403140001",
"receiver":"[email protected]"
}
]
}' - [from here][1]
但我似乎無法理解如何獲得sender_batch_header
。我認爲這種方法用於不同的目的。
那麼最新的工作方法通過貝寶發送付款是什麼?
謝謝!
謝謝你的回答,並對遲到的反應表示歉意。我已經多次聯繫Paypal,並發現啓用Payouts API的唯一方法是獲得業務支持或經理功能。他們需要Buss帳戶總收入超過5k英鎊。部門和經理總收入4萬英鎊。這對於創業公司來說確實是不幸的,我唯一的辦法就是通過網絡抓取。 – ShellRox
@ShellRox我沒有意識到這些限制!謝謝你的信息 :) –