How to capture data to my database, then redirect user directly to the PayPal screen?
Posted on 2011-04-30
This is the scenario I want:
1. User clicks "Buy Now"
2. User fills out a form with name, phone, etc, then clicks "Pay Now"
3. The form is submitted to my php script where it;
a) sends some data to my database
b) redirects user to the Pay Pal Pay Screen
4. User logs in to Pay Pal, or Enters Credit Card info to complete purchase.
Right now, the only way I can achieve this is by having a "middle page" that has a form with the necessary fields for paypal (IE: bussines email, notify url, amount,etc), and a Button. So the user has to click this button to submit the values to Pay Pal so that it can create the Payment screen.
I want to eliminate that middle page and somehow do a redirect to Pay Pal with these POST variables.
Thanks for any help :)