Paypal 到 paypal 付款
我想向我的用户提供问答服务(我知道互联网上有成千上万个这样的网站),有人可以通过指定他们将给提供良好答案的人多少钱来提出问题。
当提供了一个好的答案时,是否可以从提问者的 paypal 帐户中提取资金并将其自动发送到回答者的帐户中?
基本上,我不想做的是从提问者那里收取付款并将其保存在我的贝宝帐户中,然后在回答者的答案被接受时向他/她付款。
我将使用 LAMP 配置来提供服务。
I want to provide a question and answer service (I know there are thousands of such sites on the internet) to my users where someone can ask a question by specifying how much money they will give the person who provides a good answer.
When a good answer is provided, is it possible to take the money from the questioners paypal account and send it to the answering persons account automatically?
Basically, what I don't want to do is take payments from the questioner and hold it in my paypal account, then pay the answering person when his/her answer is accepted.
I will be using a LAMP configuration to make the service.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
PayPal API 和 PayPal 服务一般都不提供由第三方发起的自动个人对个人付款。换句话说,您必须是付款人或收款人才能参与交易;您不能代表其他用户执行此操作。
Neither the PayPal API nor the PayPal service in general provides for automatic person-to-person payments that are initiated by a third party. In other words, you must either be the payer or the payee in order to participate in a transaction; you cannot do it on behalf of another user.
您研究过 PayPal 自适应支付 API 吗?据我所知,它支持个人对个人的汇款。有关更多信息,请访问
https://cms。 paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_APIntro
希望这会有所帮助。
Have you looked into PayPal Adaptive Payments API? From what I know it supports person-to-person money transfer. For more info visit
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_APIntro
Hope this helps.
您可以使用 PayPal Adaptive。使用此功能,您可以将资金从一个帐户转移到另一个帐户。从 GutHub 下载示例源代码https://github.com/paypal/adaptive payments-sdk-php< /a>
You can use the PayPal Adaptive. Using this you can transfer money from one account to another account. Download the sample source code from GutHub https://github.com/paypal/adaptivepayments-sdk-php
我想在这里疯狂地思考(意思是不彻底,所以如果有错误请原谅我)。我认为您可以考虑一些 PayPal 产品。它们并不完全适合,但这里供您参考:
授权/订单、参考交易(又名 RT)和自适应支付(又名 AP,但不太适合您的情况)。
据我了解,您的场景将是这样的:
使用授权/订单,其工作原理如下:
好吧,我知道最好的情况是这笔钱永远不会出现在您的帐户中,甚至一毫秒都不会出现。但这就是我能想到的,“立即”是最接近“根本不”的。这种方式的另一个问题是,它分两步完成,每一步你或某人都必须支付费用。当你作为平台拿到钱的时候,你支付费用,然后你什么时候发出去,就看你用什么产品了。但好处是,直到必须收费时才收取费用。如果根本没有好的答案,也不必收费。
对于RT,它类似于Auth/Order,是提问者和你(平台)之间的协议。该协议持续时间较长(我认为是2年),但你仍然需要向响应者付款,并且你无法兑现这笔钱,这意味着当你捕获它时,你可能会失败。好事是(或者也许这是坏事),你可以只用一份协议向提问者多次收费。
使用AP,它提供“并行”付款,即提问者只向您和回答者支付一笔付款,您可以与回答者共享付款,并且您可以决定谁收到多少。您还可以决定由谁支付费用。但问题是,提问者必须在场才能付款,所以如果没有提问者,付款不会自动完成。 (Express Checkout / EC 也进行并行支付,但在费用方面也存在一些差异。因此,如果您想采用 AP 方式,您可能还需要考虑 EC,因为它更容易集成。)
我会选择 Auth /命令。但也许您可以联系PayPal商家技术服务并询问更多详细信息。
https://ppmts.custhelp.com/
或者,这里是他们文档的网站:
https://developer.paypal.com/
希望这会有所帮助。
I'd like to think wildly here (meaning not thoroughly so forgive me if there are mistakes). I think there are a few PayPal products you can consider. They do not perfectly fit, but here they are for your reference:
Auth / Order, Reference Transaction (aka RT), and Adaptive Payment (aka AP, but it doesn't fit your situation very much).
As I understand, your scenario would be like this:
With Auth / Order, it works like this:
Well I know the best case would be that the money never appears in your account, not even a millisecond. But this is what I can think of, "immediately" is the closest to "not at all". Another problem with this way is, it's done in two steps, and in each step you or someone has to pay the fee. When you as the platform gets the money, you pay the fee, and then when you send it out, it depends on which product you use. But the good thing is, the money is never charged until it has to be charged. And it doesn't have to be charged if there is not a good answer at all.
With RT, it's similar to Auth / Order, it's an agreement between the questioner and you (the platform). The agreement lasts longer (2 years I think), but you still have to pay the responder, and you can't honor the money, meaning when you capture it, you may fail. Good thing is (or maybe this is the bad thing), you can charge the questioner many times with only one agreement.
With AP, it provides "Parallel" payment, meaning the questioner pays you AND the responder with only one payment, and you can share the payment with the responder, and you can decide who receives how much. You can also decide who pays the fee. But the problem is, the questioner has to be present to make the payment, so it's not done automatically without the questioner. (Express Checkout / EC does parallel payment too with some differences, also on the fee thing. So if you want to go AP way, you may also want to consider EC because it's a lot easier to integrate.)
I would go for Auth / Order. But maybe you can get in contact with PayPal merchant technical services and ask for more details.
https://ppmts.custhelp.com/
Or, here is the website of their documents:
https://developer.paypal.com/
Hope this helps.
很多发帖者都表示AP是一个不错的选择。这是正确的。一旦您的应用获得审核团队的批准,您将需要请求提供应用 ID 的申请。您在这里申请:
https://www.paypal-apps.com/
提供尽可能多的详细信息,以便他们不必再向您提出有关您的业务等问题。一旦获得批准,您就可以使用提供的应用 ID 并在实时环境中开始开发。
如果您想让 API 在他们审核您的应用程序时正常运行,您可以使用沙箱。 https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/ 我相信审查团队要求您有一个沙箱帐户/设置,以便他们可以在您完成后测试您的实施。
不要被愚弄,因为您在沙箱中拥有所有 API 权限。因此,如果您忘记请求所需的方法(例如集中支付),您将无法在现场使用该功能,即使它在沙盒中对您有用。如果您需要某项功能,请在申请时提出请求。否则,您将需要启动新的应用程序请求。这不是什么大问题,但如果时间紧迫,您将必须等待(通常 24 - 48 小时左右)应用程序获得批准,除非 PayPal 向您提出任何问题/请求。
AP集成指南:
https://developer.paypal.com/ webapps/developer/docs/classic/adaptive- payments/integration-guide/APIntro/
API 操作和自适应支付操作:
https://developer.paypal.com/webapps/developer/docs/经典/api/#ap
Many posters have said that AP is a good choice. This is correct. You will need to request an application which provides an app ID once your app is approved by the vetting team. You apply here:
https://www.paypal-apps.com/
Provide as much detail as you can so that they don't have to come back to you with questions about your business, etc. Once it is approved, you can use the app ID provided and start development in a live environment.
If you want to get the API working while they review your app, you can use sandbox. https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/ I believe that the vetting team requires that you have a sandbox account / setup so that they can test your implementation once you are done.
Don't be fooled because you have ALL API permissions in sandbox. So if you forget to request a needed method like mass pay, you will not have that feature in live, even though it worked for you in Sandbox. If you need a feature, request it WHEN YOU APPLY. Otherwise, you will need to start a new app request. This isn't a big deal, but if time is of the essence, you will have to wait (usually 24 - 48 hours or so) for the app to be approved, barring any questions / requests that PayPal has for you.
Integration guide for AP:
https://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/integration-guide/APIntro/
API operations and operations for Adaptive Payments:
https://developer.paypal.com/webapps/developer/docs/classic/api/#ap