使用 PayPal 的多商户支付系统
我需要构建用户可以在其中销售商品的网络应用程序。 每个用户都应该能够直接从他的 PayPal 帐户上获得资金。 您能否建议在这种情况下使用哪种 PayPal 服务/支付方式(或其他支付系统)更好/更安全?
提前致谢
I need to build web application where users can sell goods.
Each user should be able to get money directly on his PayPal account.
Can you suggest which PayPal service/payment method (or other payment system) it is better/safely to use in this case?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这很容易设置(如果我正确阅读了您的要求)。您必须创建您的系统部分,但这很明显。
其余的,特别是供应商付款,可以全部由 PayPal 处理。
贝宝可以将订单处理到个人账户中。您只需为每个购买链接使用相同的 IPN 通知文件即可。此 IPN 通知文件是 PayPal 用于通知订单已到达的文件。这笔钱可能已经转到 Suzie 或 Bob 的帐户,但这并不重要。
因此,您的通知脚本收到订单 - 然后,您的内部系统会区分供应商,然后……就是这样;)。
IPN 也非常简单,他们提供了多种语言的精美模板来帮助您入门。
我确信还有其他方法可以做到这一点,但 IPN 是我个人使用的,与后端系统相结合。我什至还有另一个供应商,我销售其产品的插件。只需更改购买 URL(或表单)中的收件人电子邮件即可将资金直接存入他的 PayPal 帐户。
任何有能力的程序员都应该能够轻松处理这个问题。熟练程度包括 SQL/数据库经验和 Web 编码(任何语言)。就是这样。非程序员甚至可以学习,但需要小心清理输入以防止 SQL 注入攻击。
This is easily set up (if I read your requirements correctly). You would have to create your part of the system, but that's obvious.
The rest, specifically vendor payments, could be handled all by PayPal.
PayPal could process the orders into individual accounts. You would simply have to use the same IPN notification file for each Buy Link. This IPN notification file is what PayPal uses to notify an order has come. It does not matter that it may have come TO Suzie's or TO Bob's account.
So, your notification script gets the order -- Then, your internal system differentiates the vendor and ... that's it ;).
IPN is very simple too, and they've got nice templates in various languages to get you started.
I'm sure there are alternate ways to do it, but IPN is what I personally use, combined with a back-end system. I even have another vendor whose plug-in for my product I sell. Money goes directly into his PayPal account by simply changing the recipient email in the Buy URL (or form).
Any competent programmer should be able to handle this with ease. The proficiencies would be SQL/database experience and web coding (any language). That's about it. A non-programmer could probably even learn, though needs to be careful to sanitize the input to protect against SQL injection attacks.
您可以使用 ExpressCheckout,这意味着您的卖家不需要拥有 Pro 帐户,但登录和付款将在 paypal 的弹出窗口中进行。您还可以使用更高级的集成,但这可能需要商家升级他们的帐户,这可能会花费他们每个月的钱。
您还需要从商家处收集API密钥并将其存储在非常安全的位置,或者自己收款,并使用paypal的API代码为商家付款,但这会引入额外的(转账)费用。
You can use ExpressCheckout, this means that your sellers do not need tho have Pro accounts, but login and payment will occur in paypal's popup window. You can also use more advanced integration, but this might require the merchants to upgrade their account, and this might cost them money in every month.
You also need to collect API keys from merchants and store them in a very safe location, or collect the money yourself, and pay for the merchants using paypal's API code, but this will introduce additional (transfer) costs.
您很可能必须从头开始编写它。我的意思是,从一些裸露的框架。
You will most likely have to write it from scratch. I mean, from some bare framework.