CodeIgniter 中的 Paypal [英] Paypal in CodeIgniter

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

问题描述

在阅读 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 中为 paypal 安装了 Leon 的 Barretts 库:http://www.leonbarrett.com/code/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/

而且我完全不确定从哪里开始,理想情况下我希望用户能够使用没有贝宝帐户的信用卡付款,或者使用贝宝帐户使用贝宝付款.

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!

推荐答案

这应该是帮助您入门的好资源.它涵盖了通过贝宝进行支付所需的内容,并有一些代码示例.然后,您可以应用该信息来创建您自己的库,或使用您之前安装的库.

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 中的 Paypal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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