带有CodeIgniter的PayPal

带有CodeIgniter的PayPal

本文介绍了带有CodeIgniter的PayPal IPN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在CodeIgniter内建的网站上执行会员资格订阅服务。我希望使用PayPal来管理付款,并且很难实现这一点。



我想要实现的是:




  • 用户选择
    订阅选项(1个8个选项 - 每个不同的价格)并提交表单

  • 用户被发送到PayPal支付

  • 用户在付款成功后返回网站,

  • $ b

    还有一个表单验证的添加,我使用form_validation帮助器CodeIgniter,但这需要在PayPal付款开始之前完成。



    我试图从Ran Aroussi实现PayPal_Lib,但我觉得它没有足够明确的文档或指导。



    Lucas

    解决方案

    我发现Ran的库有点难以使用,所以我写了一个替换 - 这也有利于对事务执行更多的检查,并记录IPN调用和数据库中的订单详细信息。这里是GitHub上的库,我希望你觉得它有用:




    I am trying to implement a membership subscription service on a website built in CodeIgniter. I wish to use PayPal to manage payments, and am having a very hard time implementing this.

    What I am trying to achieve is:

    1. User fills in a membership form withpersonal details
    2. User selects asubscription option (1 of 8 choices - each different price) and submits form
    3. User is sent to PayPal to pay
    4. User is returned to site upon successful payment and personal details are stored in database which creates user account (membership).

    There is also the addition of form validation, I use the form_validation helper in CodeIgniter, but this needs to be done before PayPal payment can commence.

    I have attempted to implement the PayPal_Lib from Ran Aroussi, but I feel it has not enough clear documentation or guidance on it. Any implemented examples or advice would be much appreciated.

    Lucas

    解决方案

    I found Ran's library a little hard to use too so I've written a replacement - which also has the benefit of performing more checks on the transaction, and logging the IPN call and the order details in your database. Here's the library on GitHub, I hope you find it useful:

    https://github.com/orderly/codeigniter-paypal-ipn

    这篇关于带有CodeIgniter的PayPal IPN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    08-24 13:40