贝宝将资金从一个帐户转移到另一个帐户 [英] Paypal transfer money from one account to another

查看:120
本文介绍了贝宝将资金从一个帐户转移到另一个帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道此建议如何向任何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...

我在一个社交网站上工作,我想允许用户通过贝宝(Paypal)帐户支付服务费用.实际付款应将资金从用户的贝宝帐户转入我的贝宝帐户.

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.

这是我到目前为止提出的内容.我尝试使用自适应api和PAY选项,如果我使用我的帐户和凭据向其他用户汇款,该选项将起作用.我有biz帐户,这称为隐式批准.如果其他用户想以这种方式向我付款,则他必须拥有企业帐户并允许我的应用程序保存他的凭据,例如他的Paypal用户名,密码和签名,这不是很好.

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.

接下来我要尝试的是为此目的使用权限api .据我了解,这应类似于生成令牌,该令牌允许我的应用程序代表用户在Facebook上发布.我已经按照权限api文档中的以下权限创建了签名:

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?

推荐答案

嗯,如果我在这里错了,请纠正我,但是您建议的是一个相当规律的结帐流程,其中有一个买主和一个卖主(收件人).
您可以为此使用PayPal Express Checkout,只需设置NOSHIPPING = 2,这将关闭收货地址.
另外,如果您有美国PayPal帐户,请通过 https://www.paypal申请数字商品的PayPal Express Checkout. .com/digitalgoods ,您将能够使用基于JavaScript的精美LightBox结帐体验(也称为内联结帐").

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的相当之处在于,它仅需要最少两个API调用; SetExpressCheckout和DoExpressCheckoutPayment.

Express Checkout is fairly in that it only requires a minimum of two API calls; SetExpressCheckout and DoExpressCheckoutPayment.

发送:SetExpressCheckout并提供RETURNURL,CANCELURL,AMT(要收取的金额)和您的API凭据.
接收:您将从贝宝(PayPal)收到令牌.将此令牌附加到以下链接: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-XXXXXX (其中EC-XXXXX是您的令牌).
买家同意付款后,他将被重定向回您的RETURNURL,此后您可以自动执行,也可以在显示购买摘要后致电DoExpressCheckoutPayment.再次提供令牌并包含PayerID(在GET中返回的PayerID附加到RETURNURL,或者可以通过使用令牌调用GetExpressCheckoutDetails获得).
一旦DoExpressCheckoutPayment以ACK = Success确认,资金将已从买方的PayPal帐户余额和/或卡中转出.

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.

看看 https://www.x.com/>开发工具,以进一步了解文档,示例代码及其SDK的

Take a look at https://www.x.com/ > Dev Tools as well for further documentation, sample code and their SDK's

这篇关于贝宝将资金从一个帐户转移到另一个帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆