PayPal交易可以包括第三方吗? [英] Can a PayPal transaction include a third party?
本文介绍了PayPal交易可以包括第三方吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
情况如下:有一个连接买卖双方的网站,例如Ebay.
The situation is as follows: there's a website that connects sellers and buyers, like Ebay.
除其他事项外,网站所有者还需要了解从此处初始化的每笔交易的详细信息.本质上,我正在寻找一种可以返回数字收据的付款方式.
Among other things the owner of the website needs to know the details of each transaction initialized from there. Essentially I am looking for a payment method that returns a digital receipt.
是否可以使用PayPal做类似的事情?
Is it possible to do something like that with PayPal?
推荐答案
当然,您可以这样做.
Of course you can do it like this.
必须要做的事情:
- 已经让卖家注册了他们的PayPal信息.假设在卖家"表中,以商家电子邮件地址/商家ID作为主键.
- 卖家必须在其PayPal帐户上设置IPN URL.网址必须指向您将创建的IPN处理程序
- 处理IPN,请检查 http://boolcast.com/joomla/3-development/13-joomla-custom-paypal-ipn .我曾为Joomla编写过PayPal IPN处理程序,您可以随时对其进行修改,并根据需要使用它(您必须从配置中删除商家信息).这也是您将收到的
- Have sellers register their PayPal information with. Lets say in "sellers" table, with merchant email/ merchant id as primary key.
- Sellers will have to setup IPN URL on their PayPal accounts. There url will have to point to the IPN handler that you will create
- Handle the IPN, check this out http://boolcast.com/joomla/3-development/13-joomla-custom-paypal-ipn. I wrote that PayPal IPN handler for Joomla a while back, you can eaily modify it and use it for what you need (you will have to remove merchant info from config). Also here is a list of IPN vars that you will receive https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNReference
- If IPN is good, While handling the IPN check the receiver_email and/or receiver_id to determine who is the seller. You can retrieve the seller information from "sellers" table by the email/merchange_id. At this point you can generate all kinds of notifications to seller/buyer/yourself/etc...
注意事项:
- 如果非主要的PayPal用户将要创建PayPal按钮,则您将无法使用商家ID.
- IPN变量列表将取决于付款类型以及付款方式
- 始终使用 PayPal沙箱
这篇关于PayPal交易可以包括第三方吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文