/**
  * The payment link for invoices
  * @param  integer $id
  * @return string
  */
 function si_payment_link($id = 0, $type = '')
 {
     echo si_get_payment_link($id, $type);
 }
            ?>
									<li id="<?php 
            esc_attr_e($slug);
            ?>
" class="payment_option">
										<?php 
            if (isset($options['purchase_button_callback'])) {
                ?>
											<?php 
                call_user_func_array($options['purchase_button_callback'], array(get_the_ID()));
                ?>
										<?php 
            } else {
                ?>
											<a href="<?php 
                echo esc_url_raw(si_get_payment_link(get_the_ID(), $slug));
                ?>
" data-slug="<?php 
                esc_attr_e($slug);
                ?>
" data-id="<?php 
                the_ID();
                ?>
" data-nonce="<?php 
                echo wp_create_nonce(SI_Controller::NONCE);
                ?>
" class="payment_option <?php 
                if (si_is_cc_processor($slug)) {
                    echo 'cc_processor';
                }
                ?>
Beispiel #3
0
<div id="check_info_checkout_wrap">
	<form action="<?php 
echo si_get_payment_link(get_the_ID(), $type);
?>
" method="post" accept-charset="utf-8" class="sa-form sa-form-aligned">
		<fieldset id="checks_fields" class="sa-fieldset">
			<?php 
sa_form_fields($check_fields, 'checks');
?>
		</fieldset>
		<?php 
do_action('si_checks_form_controls', $checkout);
?>
		<?php 
do_action('si_checks_payment_controls', $checkout);
?>
		<input type="hidden" name="<?php 
echo SI_Checkouts::CHECKOUT_ACTION;
?>
" value="<?php 
echo SI_Checkouts::PAYMENT_PAGE;
?>
" />
		<button type="submit" class="button button-primary"><?php 
_e('Submit', 'sprout-invoices');
?>
</button>
	</form>
</div><!-- #credit_card_checkout_wrap -->