Example #1
0
    ?>
          <p><?php 
    echo sprintf(__('We have sent you invoice %1s with a balance of %2s.', WPI), invoice_id(array('return' => true)), balance_due(array('return' => true)));
    ?>
</p>
        <?php 
}
?>

        <p><?php 
wpi_invoice_due_date();
?>
</p>

        <?php 
if (is_recurring()) {
    ?>
          <p><?php 
    _e('This is a recurring bill.', WPI);
    ?>
</p>
        <?php 
}
?>

      </div>
      <div class="invoice_description_custom">
        <?php 
the_description();
?>
      </div>
<?php

include_once WPI_Path . '/core/wpi_template_functions.php';
?>
<form action="" method="POST" name="online_payment_form" id="online_payment_form-<?php 
print $this->type;
?>
" class="wpi_checkout online_payment_form <?php 
print $this->type;
?>
 clearfix">
    <?php 
if (!is_recurring()) {
    ?>
      <input type="hidden" id="wpi_action" name="wpi_action" value="wpi_gateway_process_payment" />
      <input type="hidden" id="wpi_form_type" name="type" value="<?php 
    print $this->type;
    ?>
" />
      <input type="hidden" id="wpi_form_invoice_id" name="invoice_id" value="<?php 
    print $invoice['invoice_id'];
    ?>
" />

      <div id="credit_card_information">

          <?php 
    do_action('wpi_payment_fields_' . $this->type, $invoice);
    ?>
        
          <ul class="wpi_checkout_block payment_details" style="display: none;">