The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PayPal payment

I am trying to make a simple script that the user clicks buy on my site, they enter their name and email address and anyother details I may need then sends them to PayPal to pay.

Then I need PayPal to send all the info back and then I need to run my script (It makes an account).

BUT.. I don't have a clue on how to do this. I am very good at understanding code (Normally) and as I don't really have time to go crawling in the documentation at PayPal (I would prefer to work on the thing I am trying to sell ) could someone please provide me with what I need to get started and a sample script with comments (I have signed up at the developer center at PayPal but that gives me jack all ^^).

Before you begin anywhere you need an account with PayPal; This account is to use their development sandbox, so the account you create is for that - development - and is not live, so it doesn't take real payments.

If it's something simple such as a Buy Now button you are looking for their standard payment scheme; You don't need their SDK for that though, but you have a choice as to use their API - web services - or use their NVP, which is named pair values that are sent via POST instead.

There are different sandbox urls you use dependent on wether you choose their API or NVP approach as well; The documentation is good, but it's not excellent, but it's not easy to grasp what you need, and what option is best suited to you, from their web site.

Their site as far as for developers go, is ill thought out in my view, but there you go...

Perhaps take a look at open source shopping carts with PayPal integration. Theres some large scripts already pre made, but i have also found alot of cut down versions that should only do what your after.