<form action="https://select.worldpay.com/wcc/purchase" method="post">
  <input type="hidden" name="instId" value="<%escape_html installation_id%>" />
  <%if test_mode%><input type="hidden" name="testMode" value="<%escape_html test_mode%>" /><%endif%>
  <input type="hidden" name="currency" value="<%escape_html currency%>" />
  <input type="hidden" name="amount" value="<%escape_html payment_amount%>" />
<%~if payment_type = 2%>
  <input type="hidden" name="futurePayType" value="regular" />
  <input type="hidden" name="option" value="0" />
  <input type="hidden" name="normalAmount" value="<%escape_html payment_amount%>" />
  <input type="hidden" name="startDelayUnit" value="<%if payment_term_u istarts 'd'%>1<%elsif payment_term_u istarts 'w'%>2<%elsif payment_term_u istarts 'm'%>3<%elsif payment_term_u istarts 'y'%>4<%endif%>" />
  <input type="hidden" name="startDelayMult" value="<%escape_html payment_term_num%>" />
  <input type="hidden" name="intervalUnit" value="<%if payment_term_u istarts 'd'%>1<%elsif payment_term_u istarts 'w'%>2<%elsif payment_term_u istarts 'm'%>3<%elsif payment_term_u istarts 'y'%>4<%endif%>" />
  <input type="hidden" name="intervalMult" value="<%escape_html payment_term_num%>" />
<%~endif%>
  <input type="hidden" name="cartId" value="<%escape_html unique_id%>" />
  <input type="hidden" name="desc" value="<%escape_html site_title%> link submission (<%ifnot payment_term_num%>Lifetime<%else%><%escape_html payment_term_num%> <%escape_html payment_term_unit%><%endif%><%if payment_type == 2%>, recurring<%endif%>)" />
  <input type="hidden" name="signatureFields" value="amount:currency:cartId" />
  <input type="hidden" name="signature" value="<%GT::Payment::Remote::WorldPay::md5_signature($md5_password, $payment_amount, $currency, $unique_id)%>" />
  <input type="submit" value="Make Payment" class="submit" />
</form>

