使用PayPal编程无需手动输入帐户和密码即可转账

Programming with PayPal to transfer money without manually input account and password

我目前正在开发一个使用 PayPal 的支付系统。

我想使用自适应支付方式从我的账户向其他账户付款,而无需自己登录、输入密码、手动确认,而是我可以将我的账户和密码存储在一个文件中,并且付款时会读取此文件作为我付款的凭证。

这可以实现吗?

支出 API 可能是您想要的:https://developer.paypal.com/docs/api/#payouts

在这种情况下访问文件并填写登录用户名/密码将不起作用。

但是使用自适应付款,您将能够通过隐式付款从您的帐户向另一个帐户付款(当 API 调用者也是付款发送者时)。

Implicit approval payments are payments where the sender and the API caller are using the same account. Because PayPal draws the funds for the payment from your own account, there is no approval necessary, and as such there is no visible flow for implicit approval payments.

从技术上讲,您需要实现一个 pay API 调用,并将 sender 设置为您自己的帐户,您可以参考 API Ref 了解详情