douqian6194 2010-09-01 18:05
浏览 14
已采纳

PayPal交易可以包含第三方吗?

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.

Is it possible to do something like that with PayPal?

  • 写回答

2条回答 默认 最新

  • dpfps86064 2010-09-01 18:29
    关注

    Of course you can do it like this.

    Couple of things that you will have to do:

    1. Have sellers register their PayPal information with. Lets say in "sellers" table, with merchant email/ merchant id as primary key.
    2. 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
    3. 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
    4. 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...

    Things to note:

    • You will not be able to use merchant ID if non primary PayPal user will be creating PayPal button.
    • List of IPN variables will depend on the type of payment and how it is submitted
    • ALWAYS use PayPal Sandbox
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 求解vmware的网络模式问题
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳
  • ¥15 springboot 3.0 实现Security 6.x版本集成
  • ¥15 PHP-8.1 镜像无法用dockerfile里的CMD命令启动 只能进入容器启动,如何解决?(操作系统-ubuntu)
  • ¥30 请帮我解决一下下面六个代码
  • ¥15 关于资源监视工具的e-care有知道的嘛
  • ¥35 MIMO天线稀疏阵列排布问题
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?