Jump to content

PayPal Integration


semlabs

Recommended Posts

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
https://forums.phpfreaks.com/topic/158420-paypal-integration/#findComment-835562
Share on other sites

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.