Jump to content

PHP Registration with PayPal IPN


bigshwa05

Recommended Posts

Hey everyone,

 

I'm fairly new to PHP. I'm really at the point where I can perform simple tasks or make modifications to pre-written scripts. 

 

I am helping out with a charity golf tournament website and i need to create a registration form where users can sign up and then be directed to paypal.  Once they have paid the registration fee i need their information to be logged with a note that their donation/payment has been recieved.  The donation will always be the same amount as it covers a round of golf and dinner. 

 

Im not really sure if i could tackle something like this from scratch, so i was wondering if anybody out there knew of a script that could perform such a function without too much technical knowledge or even a tutorial. I've done some research and reading on the paypal site but i'm not having any luck :(

 

 

Link to comment
https://forums.phpfreaks.com/topic/38420-php-registration-with-paypal-ipn/
Share on other sites

This is where I started: http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-code-outside

 

Click the PHP link towards the bottom to see a sample processing script.  I would suggest that you signup as a developer with PayPal and create what they call a 'sandbox' account.  This allows you to test your script with practice transactions and fake credit card numbers.  Best thing to do is print out some of the PDF manuals offered on the PayPal site and start reading.

 

Basic overview is:

  Create a PayPal account

  Activate IPN

  Paste the code for your 'paynow' button to your site as a form

  Use their sample code (with your info tweaks) as the action script for the form

 

That's all there is to it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.