Home › Forums › Quform WordPress › Paypal on submit
- This topic has 1 reply, 2 voices, and was last updated 8 years, 7 months ago by Ally.
- AuthorPosts
- September 17, 2015 at 7:05 pm #16865mxwealthParticipant
Hi,
I am trying to achieve this:
Options selector
1. Course 1, Value $25
2. Course 2 Value $30
3. Course 3 Value $45First I choose an option, then i fill the rest of the form, like, name, address, etc, then I hit submit, It goes to paypal with the correct amount.
I tried adding this to the page where the form is:
<div id=”paypal-form” style=”display: none;”><form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”><input name=”cmd” type=”hidden” value=”_xclick” />
<input name=”business” type=”hidden” value=”W86PBHVTZ2LN2″ />
<input name=”lc” type=”hidden” value=”GB” />
<input name=”item_name” type=”hidden” value=”Support for ThemeCatcher” />
<input name=”no_note” type=”hidden” value=”1″ />
<input name=”no_shipping” type=”hidden” value=”1″ />
<input name=”currency_code” type=”hidden” value=”USD” />
<input id=”amount” name=”amount” type=”text” value=”” />
<input class=”button-style1″ style=”width: 100%;” alt=”PayPal — The safer, easier way to pay online.” name=”submit” src=”https://www.paypalobjects.com/en_GB/i/btn/btn_buynow_LG.gif” type=”submit” value=”Send via Paypal” />
</form></div>then i added this in the html block on the form
<script>
jQuery(document).ready(function ($) {
$(‘.iphorm_5_21’).bind(‘keyup’, function () {
$(‘#amount’).val($(this).val());
});
});
</script>where iphorm_5_21 is the id of the field with the options with values but when i hit submit, it goes to paypal with $0
I tried also your other tutorial where you add a text field and then you have to key the value and it works fine, but I need to be able to choose between 3 options and get the value automatically.
Please help, we do not want the values to be changed. Thank you very much for your support.
September 21, 2015 at 11:50 am #16870AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.