Page 1 of 1

A PayPal Buy Now button question

Posted: Wed Dec 20, 2006 9:58 pm
by me!
I have an order form that asks for user data,
then saves the data to the DB and generates a page to duble check the input and the PayPAl buy now button code.

That all works fine and the paypal button works also.
My problem is since the buy now button is a form that sends you to paypal the “submit” page on my site is still open when the buyer gets returned to the conformation page. :x
(So now there are two windows open for my site)

Any ideas on how to correct this? :?

Posted: Wed Dec 20, 2006 10:24 pm
by neophyte
So submit the page to it's self or another page. Capture the data if needed and then redirect the user using header() to the paypal site.

Posted: Fri Dec 22, 2006 9:48 pm
by me!
Ya but if I do a redirect than the form data will not be sent to paypal?

Posted: Sun Dec 24, 2006 12:27 pm
by me!
I am trying to send POST data is there no good way?

Posted: Sun Dec 24, 2006 12:31 pm
by John Cartwright
Send a new post request with your data using cURL..

You may have to tweak a couple settings, depending on secure connections and whatnot. The manual and it's user comments covers pretty much everything you need to know. Give it a try, then post back if you need furthur assistance.