Paypal 将钱从一个帐户转移到另一个帐户
我知道此建议如何向任何 PayPal 帐户汇款 但到目前为止我所尝试的似乎对我来说并不满意......
我正在一个社交网站上工作,我希望允许用户通过贝宝帐户支付服务费用。实际付款应该将钱从用户的 PayPal 帐户转移到我的 PayPal 帐户。
这是我到目前为止所想到的。我尝试使用自适应 api 和 PAY 选项,如果我使用我的帐户和凭证向其他用户汇款,它就会起作用。我有商业帐户,这称为隐式批准。如果其他用户想以这种方式向我付款,他必须拥有企业帐户,并允许我的应用程序保存他的凭据,例如他的 Paypal 用户 ID、密码和签名,这不好。
接下来我尝试的是使用 permissions api 来实现此目的。据我了解,这应该类似于生成令牌,允许我的应用程序代表用户在 Facebook 上发布。我已经成功创建了权限 api 文档中指定的签名,以获得以下权限:
$permissions = array('DIRECT_PAYMENT', 'MASS_PAY', 'TRANSACTION_DETAILS');
现在我不知道如何使用此签名将钱从授予我的应用程序上述权限的 paypal 帐户转移到我的 paypal 帐户权限。
关于我做错了什么或更好的方法有什么建议吗?
I am aware of this recommendation How to send money to any paypal account but what I've tried so far seems unsatisfiable to me...
I am working on a social networking site on which I want to allow users to pay for services via paypal account. The actual payment should transfer money from a user's paypal account to my paypal account.
Here is what I came up so far. I tried to use adaptive api and PAY option and it works if I use my account and my credentials to send money to some other user. I have biz account and this is known as implicit approval. If some other user wants to pay me in this way he has to have business account and to allow my app to save his credentials like his paypal userid, password and signature which is not good.
Next thing I tried is to use permissions api for that purpose. As far as I understand this should work similar to generating token that allows my app to post on facebook on behalf of user. I've managed to create a signature as specified in the permissions api documentation for the following permissions:
$permissions = array('DIRECT_PAYMENT', 'MASS_PAY', 'TRANSACTION_DETAILS');
And now I don't know how to use this signature to transfer money to my paypal account from the paypal account that granted my app the above mentioned permissions.
Any suggestion on what I am doing wrong or better way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,如果我错了,请纠正我,但您建议的是一个相当常规的结账流程,由一名买家和一名卖家(收件人)组成。
为此,您可以使用 PayPal Express Checkout,只需设置 NOSHIPPING=2,这将关闭送货地址收集。
或者,如果您有美国 PayPal 帐户,请在 https://www.paypal 注册 PayPal Express Checkout for Digital Goods .com/digitalgoods,您将能够使用基于 JavaScript 的精美 LightBox 结账体验(也称为“内联结账”)。
Express Checkout 的优点在于它只需要至少两次 API 调用; SetExpressCheckout 和 DoExpressCheckoutPayment。
发送:SetExpressCheckout 并提供 RETURNURL、CANCELURL、AMT(收费金额)和您的 API 凭据。
接收:您将从 PayPal 收到一个令牌。将此令牌附加到以下链接:https:// /www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-XXXXXX(其中 EC-XXXXX 是您的令牌)。
一旦买家同意付款,他将被重定向回您的 RETURNURL,之后您可以自动或在显示购买摘要后致电 DoExpressCheckoutPayment。再次提供 TOKEN 并包含 PayerID(在附加到 RETURNURL 的 GET 中返回,或通过使用 TOKEN 调用 GetExpressCheckoutDetails 来获取)。
一旦 DoExpressCheckoutPayment 确认 ACK=成功,资金将从买家的 PayPal 帐户余额和/或卡中转出。
看看 https://www.x.com/ >开发工具以及更多文档、示例代码及其 SDK
Um, correct me if I'm wrong here, but what you propose is a fairly regular checkout flow with one buyer and one seller (recipient).
You can use PayPal Express Checkout for this and simply set NOSHIPPING=2, which will turn shipping address collection off.
Alternatively, if you have a US PayPal account, sign up for PayPal Express Checkout for Digital Goods at https://www.paypal.com/digitalgoods and you'll be able to use a fancy JavaScript-based LightBox checkout experience (also referred to as 'inline checkout').
Express Checkout is fairly in that it only requires a minimum of two API calls; SetExpressCheckout and DoExpressCheckoutPayment.
SEND: SetExpressCheckout and supply a RETURNURL, CANCELURL, AMT (amount to be charged) and your API credentials.
RECEIVE: You'll receive a TOKEN back from PayPal. Append this token to the following link: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-XXXXXX (where EC-XXXXX is your token).
Once the buyer agrees to the payment, he'll be redirected back to your RETURNURL, after which you can either automatically, or after showing a purchase summary, call DoExpressCheckoutPayment. Supply the TOKEN again and include the PayerID (returned in GET appended to RETURNURL, or available by calling GetExpressCheckoutDetails with the TOKEN).
Once DoExpressCheckoutPayment acknowledges with ACK=Success, the funds will have been transferred from the buyerś PayPal account balance and/or card.
Take a look at https://www.x.com/ > Dev Tools as well for further documentation, sample code and their SDK's