Many sites had shared their code but it didn't work. I guarantee to you that this will work if used correctly. Tthis code that will integrate your site to Paypal API.This is very handy for developers that will uses E-commerce site.
Things to consider before integrating
- You must have a paypal account or sandbox
- Check your links.
- PHP Syntax
Enjoy! Questions are welcome... =)download link: Download