-
kltAsked on November 30, 2016 at 12:05 PM
I have a jot form which currently uses paypal but we are switching to Moneris.
So when the user clicks the submit button I want it to open the moneris gateway page and pass the amount which has been selected to the moneris page.
It is a WordPress site.
This is my code at the moment.
***********************************
<script src="//form.jotform.ca/jsform/50755420608251" type="text/javascript"></script>
<!--Get user to input value and then take them to Moneris gateway page-->
To pay using a credit card please enter the amount below before clicking the button
<FORM METHOD="POST" ACTION= https://www3.moneris.com/HPPDP/index.php >
<INPUT TYPE="HIDDEN" NAME="ps_store_id" VALUE="XXXXXXX">
<INPUT TYPE="HIDDEN" NAME="hpp_key" VALUE="yyyyyyyy">
Please enter the amount to be paid:
<INPUT TYPE="TEXT" NAME="charge_total" VALUE="33.60">
<!--MORE OPTIONAL VARIABLES CAN BE DEFINED HERE -->
<INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Click here to pay by Credit Card">
</FORM>
************************************
I want to remove the paypal integration (when the new code is working), so that instead of opening paypal when a user clicks the submit button it will open the moneris page and pass the value from the Total field in the jot form to the charge_total field in the Moneris gateway page.
Thank you
-
David JotForm SupportReplied on November 30, 2016 at 2:46 PM
You can indeed send the form field data to a target PHP script via POST method. Here is our guide on how to do so: