贝宝在codeIgniter [英] Paypal in CodeIgniter

查看:156
本文介绍了贝宝在codeIgniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读paypals开发者网站的文档了好一阵子后,我来叠加。我对整个API协议的工作原理有点迷茫,我决定把它简单,看看我甚至不需要使用任何按钮,比更复杂。所以......

After reading documentation on paypals developers website for quite a while, I've come to stack. I'm a bit confused on how the whole API deal works, and I decided to take it simpler, find out if I even need to use anything more complex than buttons. So...

我需要什么:
数字商品多个选项
(IE - 2帖子$ 5,10个职位为$ 10)

What I Need: Multiple options for digital goods (IE - 2 Posts for $5, 10 posts for $10)

我明明可以用一个按钮让他们付出代价,但我需要能够得到响应,以知道他们买的(在未来或更多),其中2东西,这样我就可以相应地修改数据库。这可能与像 https://www.x.com/community/ppx/wps

I obviously could use a button to have them pay, but I need to be able to get a response to know which of the 2 (or more in the future) things they bought, so I can modify the database accordingly. Is this possible with something like https://www.x.com/community/ppx/wps

还是我将不得不使用API​​?我安装了莱昂的巴雷特库在codeIgniter贝宝:
http://www.leonbarrett.com/$c$c/paypal/

Or am I going to have to use the API? I installed Leon's Barretts' library for paypal in CodeIgniter: http://www.leonbarrett.com/code/paypal/

而我只是完全不确定该何去何从,理想情况下,我想用户能够使用信用卡支付的w / o一个PayPal帐户,或者支付使用PayPal使用PayPal帐户。

And I'm just completely unsure where to go from here, ideally I'd like the user to be able to pay with credit card w/o a paypal account, or pay with paypal with a paypal account.

有什么想法帮我弄去?谢谢你们!

Any thoughts to help me get going? Thanks guys!

推荐答案

<一个href=\"http://phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/\"相对=nofollow>这应该是一个很好的资源,让你开始。它涵盖了什么是需要通过PayPal做支付,并具有一定的code的例子。然后,您可以在信息应用到创建自己的库中,或使用你previously安装的。

This should be a good resource to get you started. It covers what is required to do payments through paypal, and has some code examples. You can then apply that information to creating your own library, or using the one you previously installed.

这篇关于贝宝在codeIgniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆