Jump to content

PayPal Integration


semlabs

Recommended Posts

Hi,

 

I need to integrate PayPal, but I am not sure which of their packages would be best. I want to use the system across a number of sites all of which only have one item which can be bought, but I need to be able to change the price.

Link to comment
Share on other sites

use the Instant Payment Notification script generator on their website in the developer/merchant section and generate a PHP one.

 

Then log into your own paypal and go to the Merchant Tools and go to where it says something like 'make your own Buy Now Button'

 

you then put the HTML Buy Now Button in each of your websites, and set the correct field value to the address of where your IPN Script you generated on the website is on your webhost.

 

Then enable Instant Payment Notifications in your paypal somewhere in the account settings, and set the URL to where the IPN script is on your website once again.

 

Finally, edit your IPN script and add whatever you want it to do within the if that checks if the transaction was complete and valid.

 

it will look something similar to this...

if($cmd['transaction'] == "VALID")
{

  // do your stuff here, update your database or whatever

}

 

information on Instant Payment Notification can be found here... https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_html_instantpaymentnotif

 

information on the variables in the HTML Buy Now Button can be found here... https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables

 

Good Luck,

ACE

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.