Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
The use of "your plugin" is confusing. Are you talking about Contact Form 7? – Brent Dec 1 '12 at 5:18
take a look at this WP forum thresd. It has useful information and solutions. wordpress.org/support/topic/… – t-p Dec 1 '12 at 7:46

1 Answer

If it is a paid membership you're better off using the free plugin paid membership pro. It's free and easy to setup. It requires users to pay in order to complete their registration.

It's good in case the user backs out of paying and they won't fully register until payment is met or you can get gravity forms it is like $200 dollars but has the paypal integration you are looking and more.

whoops I was wrong there is a way sort of - http://runastartup.com/integrate-paypal-button-with-contact-form-in-wordpress/

share|improve this answer
please let me know if my answer helped – user1757516 Dec 2 '12 at 20:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.