Exemplo n.º 1
0
    _e('Date', 'give');
    ?>
:</strong></td>
				<td><?php 
    echo date_i18n(get_option('date_format'), strtotime($meta['date']));
    ?>
</td>
			</tr>
		<?php 
}
?>

		<?php 
//No fees built in just yet...
//@TODO: Fees
if ($fees = give_get_payment_fees($payment->ID, 'fee')) {
    ?>
			<tr>
				<td><strong><?php 
    _e('Fees', 'give');
    ?>
:</strong></td>
				<td>
					<ul class="give_receipt_fees">
						<?php 
    foreach ($fees as $fee) {
        ?>
							<li>
								<span class="give_fee_label"><?php 
        echo esc_html($fee['label']);
        ?>
Exemplo n.º 2
0
echo esc_attr(date_i18n('H', $payment_date));
?>
" class="small-text give-payment-time-hour" />&nbsp;:&nbsp;
												<input type="number" step="1" max="59" name="give-payment-time-min" value="<?php 
echo esc_attr(date('i', $payment_date));
?>
" class="small-text give-payment-time-min" />
											</p>
										</div>

										<?php 
do_action('give_view_order_details_update_inner', $payment_id);
?>

										<?php 
$fees = give_get_payment_fees($payment_id);
if (!empty($fees)) {
    ?>
											<div class="give-order-fees give-admin-box-inside">
												<p class="strong"><?php 
    _e('Fees', 'give');
    ?>
:</p>
												<ul class="give-payment-fees">
													<?php 
    foreach ($fees as $fee) {
        ?>
														<li>
															<span class="fee-label"><?php 
        echo $fee['label'] . ':</span> ' . '<span class="fee-amount" data-fee="' . esc_attr($fee['amount']) . '">' . give_currency_filter($fee['amount'], $currency_code);
        ?>
 /**
  * Retrieve payments.
  *
  * The query can be modified in two ways; either the action before the
  * query is run, or the filter on the arguments (existing mainly for backwards
  * compatibility).
  *
  * @access public
  * @since  1.0
  * @return object
  */
 public function get_payments()
 {
     do_action('give_pre_get_payments', $this);
     $query = new WP_Query($this->args);
     if ('payments' != $this->args['output']) {
         return $query->posts;
     }
     if ($query->have_posts()) {
         while ($query->have_posts()) {
             $query->the_post();
             $details = new stdClass();
             $payment_id = get_post()->ID;
             $details->ID = $payment_id;
             $details->date = get_post()->post_date;
             $details->post_status = get_post()->post_status;
             $details->total = give_get_payment_amount($payment_id);
             $details->fees = give_get_payment_fees($payment_id);
             $details->key = give_get_payment_key($payment_id);
             $details->gateway = give_get_payment_gateway($payment_id);
             $details->user_info = give_get_payment_meta_user_info($payment_id);
             if (give_get_option('enable_sequential')) {
                 $details->payment_number = give_get_payment_number($payment_id);
             }
             $this->payments[] = apply_filters('give_payment', $details, $payment_id, $this);
         }
         wp_reset_postdata();
     }
     do_action('give_post_get_payments', $this);
     return $this->payments;
 }