[gravityform id=”2″ title=”false” description=”false” ajax=”true”]
<input type="hidden" id="world_pay_form_to_submit" /><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- this is the code for 1 off payments --><!-- [et_pb_line_break_holder] --><form style="display:none" id="worldpay_form_one_off_payment" action="https://secure.worldpay.com/wcc/purchase" method=POST><!-- [et_pb_line_break_holder] --><!-- This next line contains the testMode parameter - it specifies that the submission is a test submission --><!-- [et_pb_line_break_holder] --><input type="hidden" name="testMode" value="0"><!-- [et_pb_line_break_holder] --><!-- This next line contains a mandatory parameter. Put your Installation ID inside the quotes after value= --><!-- [et_pb_line_break_holder] --><!-- You will need to get the installation ID from your Worldpay account. Login to your account, click setting and under installations<!-- [et_pb_line_break_holder] -->you should have an option called select junior and a number, put the number between "" e.g. "123456"--><!-- [et_pb_line_break_holder] --><input type="hidden" name="instId" value="1270018"><!-- [et_pb_line_break_holder] --><!-- Another mandatory parameter. Put your own reference identifier for the item purchased inside the quotes after value= --><!-- [et_pb_line_break_holder] --><input type="hidden" name="cartId" value="1"><!-- [et_pb_line_break_holder] --><input type="hidden" name="product" value="testing"><!-- [et_pb_line_break_holder] --><!-- Another mandatory parameter. Put the total cost of the item inside the quotes --><!-- [et_pb_line_break_holder] --><input type="hidden" id="worldpay_amount" name="amount" value="4.99"><!-- [et_pb_line_break_holder] --><!-- Another mandatory parameter. Put the code for the purchase currency inside the quotes after value= --><!-- [et_pb_line_break_holder] --><input type="hidden" name="currency" value="GBP"><!-- [et_pb_line_break_holder] --><!-- This creates the button. When it is selected in the browser, the form submits the purchase details to us. --><!-- [et_pb_line_break_holder] --><input type="submit" id="worldpay_form_one_off_payment_submit" value=" Buy This "><!-- [et_pb_line_break_holder] --></form><!-- [et_pb_line_break_holder] --><!-- this is the end of the code for 1 off payments --><!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --><!-- this is code for monthly payments --><!-- [et_pb_line_break_holder] --><form style="display: none;" id="worldpay_form_monthly" action="https://secure.worldpay.com/wcc/purchase" method=post><!-- [et_pb_line_break_holder] --><input type='hidden' name='instId' value='1270020'/><!-- [et_pb_line_break_holder] --><input type='hidden' id="monthly_amount" name='amount' value='17.99'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='cartId' value='test'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='currency' value='GBP'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='futurePayType' value='regular'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='option' value='0'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='startDelayUnit' value='2'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='startDelayMult' value='1'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='noOfPayments' value='12'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='intervalUnit' value='3'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='intervalMult' value='1'/><!-- [et_pb_line_break_holder] --><input type='hidden' id="monthly_normal_amount" name='normalAmount' value='17.99'/><!-- [et_pb_line_break_holder] --><input type='hidden' name='testMode' value='0'/><!-- [et_pb_line_break_holder] --><input type="submit" id="worldpay_form_monthly_submit" value="Sign up now"><!-- [et_pb_line_break_holder] --></form><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> <script><!-- [et_pb_line_break_holder] --> jQuery(document)<!-- [et_pb_line_break_holder] --> .on("click",".payment_type input[type='radio']",function(){<!-- [et_pb_line_break_holder] --> var new_price = jQuery(this).parent("li").find("label").find(".total_price").text();<!-- [et_pb_line_break_holder] --> /* alert(new_price); */<!-- [et_pb_line_break_holder] --> jQuery("#worldpay_amount").val(new_price);<!-- [et_pb_line_break_holder] --> jQuery("#monthly_normal_amount").val(new_price);<!-- [et_pb_line_break_holder] --> jQuery("#monthly_amount").val(new_price);<!-- [et_pb_line_break_holder] --> if(new_price < 12){<!-- [et_pb_line_break_holder] --> jQuery("#world_pay_form_to_submit").val('worldpay_form_monthly_submit');<!-- [et_pb_line_break_holder] --> }else{<!-- [et_pb_line_break_holder] --> jQuery("#world_pay_form_to_submit").val('worldpay_form_one_off_payment_submit');<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> jQuery("#gform_submit_button_2").click();<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> jQuery(document)<!-- [et_pb_line_break_holder] --> .on('gform_confirmation_loaded', function(event, form_id){<!-- [et_pb_line_break_holder] --> var buttonId = jQuery("#world_pay_form_to_submit").val();<!-- [et_pb_line_break_holder] --> jQuery("#"+buttonId).click();<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> </script>
Open chat
1
Hi, how can we help you?