BleepingComputer.com: Using PayPal for membership signup

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Using PayPal for membership signup

#1 User is offline   Wolfy87 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 414
  • Joined: 25-July 08
  • Gender:Male
  • Location:England

Posted 09 March 2010 - 12:59 PM

Hi, I am planning a web application that involves the user paying via paypal when signing up, I just wondered if anyone had any suggestions on how to go about this.

My first idea is for the user to input there user name, password and email etc. Then it will move to the next page where the user must pay a fee via paypal, after this is completed an email is sent from paypal to my in box describing the transaction.

From this I need to send an email back to the user (which is included in the one from paypal) which contains a 10 character code or something along those lines. Now there is the problem, I can generate the code with PHP no problem but the question is how do I make my email client request the script and send the code.

I hope you can get the idea of what I am trying to achieve from this but if you have any better suggestions that would be great. I do not need any help with the code (MySQL / PHP etc) its just the concept of how I get the code from my server into an email.

Is it possible that my server executes the mail script when it receives a email from paypal?

Thanks to anyone that can help, Wolfy87.

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 09 March 2010 - 03:31 PM

Maybe it would just be easier to check out the examples in the API from Paypal and see what they have to offer first. It doesn't do you any good to try and use a service when you don't even know what capabilities it has. :thumbsup:
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   Wolfy87 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 414
  • Joined: 25-July 08
  • Gender:Male
  • Location:England

Posted 10 March 2010 - 12:14 PM

I have looked a bit deeper into the link code and have found a return variable. This means when a user is finished paying or has quit then it will automatically redirect to the page specified, I can also set a value so it uses $_POST to send the details of the transaction to the return page.

The problem with this by its self is that someone could imitate paypal and just send the right values. I feel the best way to overcome this would be to use PHP to check the referrer URL to see if it was sent from paypal.

If all is well and good there previously entered user-name, password, company name and email will be entered into the data base (MySQL) and they will be logged in with MD5 and salting etc, you get the idea...

Do you think I am on the right track?

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users