I currently use the Contact Form 7 plugin on my WordPress installation to manage registration forms. I need it so when the submit button is hit, it takes you automatically to our PayPal gateway set up within the plugin.
The code on the page looks like this:
<td><input type="submit" value="Submit" class="wpcf7-form-control
wpcf7-submit" /></td>
</tr>
</table>
<div class="wpcf7-response-output wpcf7-display-none"></div></form></div> </div>
<div id="paypal-form" style="display:none;">
<div class="message"><img
src="http://www.ypepittsburgh.org/wp-content/themes/ype/images/message-text.png"
width="409px"height="51px" alt="Please proceed to make the
payment"border="0"></div>
<!-- Begin PayPal Donations by http://wpstorm.net/ -->
<form action="https://www.paypal.com/cgi-bin/webscr"method="post"><div
class="paypal-donations"><input type="hidden"name="cmd"
value="_donations" /><input type="hidden"
name="business"value="Josh.hickman@ypenergy.org" /><input
type="hidden"name="item_name" value="Inspiration Pittsburgh Style!"
/><inputtype="hidden" name="item_number" value="Event Registration"
/><inputtype="hidden" name="amount" value="50" /><input
type="hidden"name="currency_code" value="USD" /><input
type="image"src="http://ypepittsburgh.org/wp-content/themes/ype/images/register-btn.png"
name="submit" alt="PayPal - The safer, easier way to pay online."
/><img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif"
width="1"height="1" /></div></form>
<!-- End PayPal Donations -->
There is an additional comments page for every form and I had the following code in there:
on_sent_ok: "if($("#custom-price").val()==''){ window.location.href =
"http://ypepittsburgh.org/?page_id=130"; } else
{$('#event-form').hide(); $('#paypal-form').show(); }"
This achieved after form submittal, a redirect to a middle page with a button for payment. This was our previous solution. However, I need to be able to achieve that previous solution I described. I need it so when the submit button is hit, it takes you automatically to our PayPal gateway set up within the plugin.
