Paypal in CodeIgniter

api, codeigniter, paypal, php

Solution

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.

Problem

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... What I Need: Multiple options for digital goods (IE - 2 Posts for $5, 10 posts for $10) 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 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!

Original source