Hi, What i am after doing is adding a feature into my site which sends a user to pay pal and when returns goes to e.g thankyou.php. But what i need it to do is return some information about what they have bought as i need to add what they have bought back into the database. Cheers, Adam
I also recommend getting a paypal developer account at hxxp://developer.paypal.com to test IPN. I've had a lot of trouble with IPN in the past ~ it's not an ideal in my opinion and really for long term you want to be thinking about a merchant or vendor. Gary
I did not explain what i was fully going to do with this properly. Basically the site will be selling ads and what i want it to do is if someone wants to buy an add on e.g. abcde.com then they will pay the owner of that website into their paypal. This will then come back to my site so that i can add a record of the transaction for user rating. Cheers, Adam
Do you need any information back from PayPal or just a url for the user to go to when the sale's done? Because you can do that when you make a button as well as set a url for if the payment's unsuccessful
I need the full url of the site that they are buying links on, this way i can query that against which user it is that they are buying from.
You can not get information from a paypal payment that is not made into your account. Unless the paypal address owner sets it up in their configuration.
This can be done and i have worked it out. It is quite simply actually, when you set-up the form for paypal to return to. You simply site up a GET on the return url so it sends this to paypal. <input type="hidden" name="return" value="http://www.domain.com?id=<?php print $id; ?>"> Works a treat Adam