Setup for Master Form V4 Redirecting To PayPal For Payment
With Master Form V4, you can collect information on a form for emailing and/or storing in a database. The same form can redirect the browser to PayPal for payment as if a PayPal Buy Now Button was clicked.
The way to set it up is to provide a special URL in the name="redirect" hidden field. Follow these steps to find the URL:
-
Make the Buy Now Button code at PayPal.
-
Paste the button code into a text processor.
-
In the button code's form tag, find the action="..." and copy the URL between the quotes.
Paste the URL into a blank place in your text processor document. This is the beginning of the special URL.
-
Append this at the end of the partial special URL:
?cmd= -
Now, find the value of the hidden form field name="cmd" in the button code and append that value at the end of the special URL.
-
Append this at the end of the special URL:
&hosted_button_id= -
Find the value of the hidden form field name="hosted_button_id" in the button code and append that value at the end of the special URL.
-
The URL will look something like this:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=654321
The special URL has now been constructed. Use the special URL as the value of the Master Form from's name="redirect" hidden field.
Do test it to make sure everything works as it should.
Will Bontrager