What area of PHP does this cover??? (transcript included)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
KyZu
Forum Newbie
Posts: 17
Joined: Sun Apr 24, 2011 9:13 pm

What area of PHP does this cover??? (transcript included)

Post by KyZu »

So I was watching some random interviews and I ran into this one: http://mixergy.com/christian-owens-interview/

During the interview the Chris Owens guy said:
We took orders via PayPal. We used the instant payment notification API to ping back our servers, and then sent out the licenses. It was all done in PHP. We worked in three ways. We worked in one way where they’d give us a list of license codes, and then we’d just assign them to people when a sale was made. And then, at the end of the promotion we’d give the list back. We worked on another one where we’d have a URL. We’d ping that URL and that would send the license back, and then we’d send it out ourselves. And then, we had another one where we’d ping the URL, and they’d send it from their servers along to the customer. It was completely automated. So, even if you’re pinging the URL or you’re drawing from a list, it’s all happening automatically for the user
He mentioned this was all done in PHP, could someone tell me what area of PHP this covers and how I could learn to do something similar (and how difficult it would be)? I think it'd be great practice for things related to databases, I just want to know and understand the use of the instant payment notification API and how difference licenses were drawn for each customer even though they're purchasing the same product.
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: What area of PHP does this cover??? (transcript included

Post by oscardog »

Do you mean specifically for PayPal's IPN or a system like IPN?

The simplest way would be using cURL and posting all the data you want to send. So using PayPal as an example:
  • User pays, script gathers details.
  • Script uses cURL to POST any required data back to the return URL
It's not as complicated as it sounds. Obviously, you want to get some form of encryption going and a system to verify the data is legit, like PayPal does.
KyZu
Forum Newbie
Posts: 17
Joined: Sun Apr 24, 2011 9:13 pm

Re: What area of PHP does this cover??? (transcript included

Post by KyZu »

hmm, thanks for your help
Post Reply