当前位置: 首页>>代码示例>>PHP>>正文


PHP edd_is_payment_complete函数代码示例

本文整理汇总了PHP中edd_is_payment_complete函数的典型用法代码示例。如果您正苦于以下问题:PHP edd_is_payment_complete函数的具体用法?PHP edd_is_payment_complete怎么用?PHP edd_is_payment_complete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了edd_is_payment_complete函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: edd_sl_site_management_links

/**
 * Displays a Manage Licenses link in purchase history
 *
 * @since 2.7
 */
function edd_sl_site_management_links($payment_id, $purchase_data)
{
    $licensing = edd_software_licensing();
    $downloads = edd_get_payment_meta_downloads($payment_id);
    if ($downloads) {
        $manage_licenses_url = esc_url(add_query_arg(array('action' => 'manage_licenses', 'payment_id' => $payment_id)));
        echo '<td class="edd_license_key">';
        if (edd_is_payment_complete($payment_id)) {
            echo '<a href="' . esc_url($manage_licenses_url) . '">' . __('View Licenses', 'edd_sl') . '</a>';
        } else {
            echo '-';
        }
        echo '</td>';
    }
}
开发者ID:SelaInc,项目名称:eassignment,代码行数:20,代码来源:history.php

示例2: wpautop

                ?>
						</div>

						<?php 
                if ($edd_receipt_args['notes']) {
                    ?>
							<div class="edd_purchase_receipt_product_notes"><?php 
                    echo wpautop(edd_get_product_notes($item['id']));
                    ?>
</div>
						<?php 
                }
                ?>

						<?php 
                if (edd_is_payment_complete($payment->ID) && edd_receipt_show_download_files($item['id'], $edd_receipt_args, $item)) {
                    ?>
						<ul class="edd_purchase_receipt_files">
							<?php 
                    if (!empty($download_files) && is_array($download_files)) {
                        foreach ($download_files as $filekey => $file) {
                            $download_url = edd_get_download_file_url($meta['key'], $email, $filekey, $item['id'], $price_id);
                            ?>
									<li class="edd_download_file">
										<a href="<?php 
                            echo esc_url($download_url);
                            ?>
" class="edd_download_file_link"><?php 
                            echo edd_get_file_name($file);
                            ?>
</a>
开发者ID:Balamir,项目名称:Easy-Digital-Downloads,代码行数:31,代码来源:shortcode-receipt.php

示例3: column_email

 /**
  * Render the Email Column
  *
  * @access public
  * @since 1.4
  * @param array $payment Contains all the data of the payment
  * @return string Data shown in the Email column
  */
 public function column_email($payment)
 {
     $row_actions = array();
     $email = edd_get_payment_user_email($payment->ID);
     // Add search term string back to base URL
     $search_terms = isset($_GET['s']) ? trim($_GET['s']) : '';
     if (!empty($search_terms)) {
         $this->base_url = add_query_arg('s', $search_terms, $this->base_url);
     }
     if (edd_is_payment_complete($payment->ID) && !empty($email)) {
         $row_actions['email_links'] = '<a href="' . add_query_arg(array('edd-action' => 'email_links', 'purchase_id' => $payment->ID), $this->base_url) . '">' . __('Resend Purchase Receipt', 'easy-digital-downloads') . '</a>';
     }
     $row_actions['delete'] = '<a href="' . wp_nonce_url(add_query_arg(array('edd-action' => 'delete_payment', 'purchase_id' => $payment->ID), $this->base_url), 'edd_payment_nonce') . '">' . __('Delete', 'easy-digital-downloads') . '</a>';
     $row_actions = apply_filters('edd_payment_row_actions', $row_actions, $payment);
     if (empty($email)) {
         $email = __('(unknown)', 'easy-digital-downloads');
     }
     $value = $email . $this->row_actions($row_actions);
     return apply_filters('edd_payments_table_column', $value, $payment->ID, 'email');
 }
开发者ID:pderksen,项目名称:Easy-Digital-Downloads,代码行数:28,代码来源:class-payments-table.php

示例4: edd_currency_filter

												<?php 
        }
        ?>
												<span class="price-text"><?php 
        echo edd_currency_filter(edd_format_amount($price), $currency_code);
        ?>
</span>
											</li>

											<li class="actions">
												<input type="hidden" class="edd-payment-details-download-has-log" name="edd-payment-details-downloads[<?php 
        echo $key;
        ?>
][has_log]" value="1" />
												<?php 
        if (edd_get_download_files($item_id, $price_id) && edd_is_payment_complete($payment_id)) {
            ?>
													<a href="" class="edd-copy-download-link" data-download-id="<?php 
            echo esc_attr($item_id);
            ?>
" data-price-id="<?php 
            echo esc_attr($price_id);
            ?>
"><?php 
            _e('Copy Download Link(s)', 'edd');
            ?>
</a> |
												<?php 
        }
        ?>
												<a href="" class="edd-order-remove-download edd-delete" data-key="<?php 
开发者ID:nitun,项目名称:Easy-Digital-Downloads,代码行数:31,代码来源:view-order-details.php

示例5: edd_osgi_action_payment_receipt_after_table

 /**
  *
  * @param unknown $payment        	
  * @param string $edd_receipt_args        	
  */
 public function edd_osgi_action_payment_receipt_after_table($payment, $edd_receipt_args = null)
 {
     if ($this->osgipub_osgi_debug) {
         echo "<p>debug: this is the action after table</p>\n";
     }
     if (isset($payment) && edd_is_payment_complete($payment->ID)) {
         $meta = get_post_meta($payment->ID);
         if ($this->osgipub_osgi_debug) {
             echo "<p>debug: Payment vardump=";
             var_dump($payment);
             echo "</p>\n";
             echo "<p>debug: Payment metadata vardump=";
             var_dump($meta);
             echo "</p>\n";
         }
         // same $cart = edd_get_payment_meta_cart_details( $payment->ID, true );
         $downloads = edd_get_payment_meta_cart_details($payment->ID, true);
         $edd_payment_post_id = $payment->ID;
         $edd_payment_user_id = (string) $meta['_edd_payment_user_id'][0];
         $edd_payment_customer_id = (string) $meta['_edd_payment_customer_id'][0];
         //TODO REMOVED BECAUSE NOT BEING GENERATED $edd_payment_number = ( string ) $meta ['_edd_payment_number'] [0];
         $edd_payment_number = $edd_payment_post_id;
         $edd_payment_purchase_key = (string) $meta['_edd_payment_purchase_key'][0];
         // see easy-digital-downloads/templates/history-downloads.php
         // add_query_arg( 'payment_key', edd_get_payment_key( $post->ID ), edd_get_success_page_uri() )
         if ($downloads) {
             $display_licence_table = false;
             // check if any downloads are osgi licenced
             foreach ($downloads as $download) {
                 if ($this->is_osgi_licenced($download['id'])) {
                     $display_licence_table = true;
                 }
             }
             if ($display_licence_table) {
                 echo "<div id=\"osgi_licence_list_table\" class=\"osgi_licence_list\">\n";
                 echo "<h3>OSGi Licences</h3>\n";
                 echo "<p>One of more of your purchased downloads have associated OSGi Licences.<BR>To generate your licences select the links below.</p>\n";
                 echo "<table>\n";
             }
             // used to set change licence name for multiple downloads
             $download_no = 0;
             foreach ($downloads as $download) {
                 // Skip over Bundles. Products included with a bundle will be displayed individually
                 if (edd_is_bundled_product($download['id'])) {
                     continue;
                 }
                 // if not osgi licenced bundle skip
                 if (!$this->is_osgi_licenced($download['id'])) {
                     continue;
                 }
                 $download_no++;
                 $price_id = edd_get_cart_item_price_id($download);
                 $download_files = edd_get_download_files($download['id'], $price_id);
                 $name = get_the_title($download['id']);
                 // quantity used to handle multiple licences per download
                 for ($quantity = 1; $quantity <= $download['quantity']; $quantity++) {
                     if (isset($edd_payment_number)) {
                         // start of table row
                         echo "  <tr>\n";
                         echo "    <td>\n";
                         // product id string from download
                         // contains maven unique id of product to which this licence applies
                         $edd_osgiProductIdStr = get_post_meta($download['id'], '_edd_osgiProductIdStr', true);
                         // try loading modified LicenceMetadataSpecStr from this product efinition and apply to licence post
                         $edd_modified_osgiLicenceMetadataSpecStr = get_post_meta($download['id'], '_edd_modified_osgiLicenceMetadataSpecStr', true);
                         // Retrieve and append the price option name
                         if (!empty($price_id)) {
                             $name .= ' - ' . edd_get_price_option_name($download['id'], $price_id, $payment->ID);
                         }
                         // product name - payment number - download number
                         $licence_post_title = $name . ' - ' . $edd_payment_number . '-' . $download_no . '-' . $quantity;
                         // remove whitepsace
                         $licence_post_name = preg_replace('/\\s+/', '', $licence_post_title);
                         if ($this->osgipub_osgi_debug) {
                             echo "<p>debug: download [id]=" . $download['id'] . '</p>\\n';
                             if (!isset($edd_osgiProductIdStr)) {
                                 echo "<p>debug: from download edd_osgiProductIdStr not set for download [id]=" . $download['id'] . '</p>\\n';
                             } else {
                                 echo "<p>debug: from download edd_osgiProductIdStr=";
                                 echo $edd_osgiProductIdStr;
                                 echo "</p>\n";
                             }
                             echo "<p>debug: payment name=";
                             echo $name;
                             echo "</p>\n";
                             echo "<p>debug: licence_post_title=";
                             echo $licence_post_title;
                             echo "</p>\n";
                             echo "<p>debug: licence_post_name=";
                             echo $licence_post_name;
                             echo "</p>\n";
                             echo "<p>debug: edd_payment_number=";
                             echo $edd_payment_number;
                             echo "</p>\n";
                         }
//.........这里部分代码省略.........
开发者ID:OpenNMS,项目名称:osgi-plugin-manager,代码行数:101,代码来源:edd-downloads-as-osgi.php

示例6: is_invoice_allowed

 /**
  * Instruct EDD PDF Invoices that subscription paymentsare eligible for Invoices
  *
  * @since  2.2
  * @return bool
  */
 public function is_invoice_allowed($ret, $payment_id)
 {
     $payment_status = get_post_status($payment_id);
     if ('edd_subscription' == $payment_status) {
         $parent = get_post_field('post_parent', $payment_id);
         if (edd_is_payment_complete($parent)) {
             $ret = true;
         }
     }
     return $ret;
 }
开发者ID:nguyenthai2010,项目名称:ngocshop,代码行数:17,代码来源:edd-recurring.php

示例7: column_email

 /**
  * Render the Email Column
  *
  * @access public
  * @since 1.4
  * @param array $item Contains all the data of the payment
  * @return string Data shown in the Email column
  */
 public function column_email($item)
 {
     $payment = get_post($item['ID']);
     $row_actions = array();
     $row_actions['edit'] = '<a href="' . add_query_arg(array('edd-action' => 'edit-payment', 'purchase_id' => $payment->ID), $this->base_url) . '">' . __('Edit', 'edd') . '</a>';
     if (edd_is_payment_complete($payment->ID)) {
         $row_actions['email_links'] = '<a href="' . add_query_arg(array('edd-action' => 'email_links', 'purchase_id' => $payment->ID), $this->base_url) . '">' . __('Resend Purchase Receipt', 'edd') . '</a>';
     }
     $row_actions['delete'] = '<a href="' . wp_nonce_url(add_query_arg(array('edd-action' => 'delete_payment', 'purchase_id' => $payment->ID), $this->base_url), 'edd_payment_nonce') . '">' . __('Delete', 'edd') . '</a>';
     $row_actions = apply_filters('edd_payment_row_actions', $row_actions, $payment);
     $value = $item['email'] . $this->row_actions($row_actions);
     return apply_filters('edd_payments_table_column', $value, $item['ID'], 'email');
 }
开发者ID:bangtienmanh,项目名称:Easy-Digital-Downloads,代码行数:21,代码来源:class-payments-table.php

示例8: foreach

        //print_r($cart); exit;
        if ($licenses) {
            ?>

    

				<?php 
            foreach ($cart as $cart_row => $cart_item) {
                ?>

                <?php 
                if (empty($cart_item['in_bundle'])) {
                    $price_id = edd_get_cart_item_price_id($cart_item);
                    $download_files = edd_get_download_files($cart_item['id'], $price_id);
                    $products_domains = edd_software_licensing()->get_sites($licenses[$cart_row]->ID);
                    if (edd_is_payment_complete($payment_id)) {
                        //&& edd_receipt_show_download_files( $cart_item['id'], $edd_receipt_args )
                        ?>

                        <?php 
                        if ($download_files && is_array($download_files)) {
                            foreach ($download_files as $filekey => $file) {
                                $post_meta = get_post_meta($licenses[$cart_row]->ID, '_edd_sl_download_id', true);
                                $product = get_post($file['attachment_id']);
                                if (!empty($product)) {
                                    $license_date = get_post_meta($licenses[$cart_row]->ID, '_edd_sl_expiration', true);
                                    $unlimited_license = get_post_meta($cart_item['id'], '_unlimited_license', true);
                                    $now = strtotime(date('Y-m-d H:i:s'));
                                    $expired_license = $license_date > $now || $unlimited_license == 1 ? 0 : 1;
                                    if (1 === $expired_license) {
                                        ?>
开发者ID:jomsocial,项目名称:eddDownloads,代码行数:31,代码来源:downloads_history.php

示例9: edd_get_price_option_name

                            if (!empty($price_id)) {
                                $name .= ' - ' . edd_get_price_option_name($download['id'], $price_id, $payment->ID);
                            }
                            do_action('edd_download_history_row_start', $payment->ID, $download['id']);
                            ?>
                                    <td class="edd_download_download_name"><?php 
                            echo esc_html($name);
                            ?>
</td>

                                    <?php 
                            if (!edd_no_redownload()) {
                                ?>
                                        <td class="edd_download_download_files">
                                            <?php 
                                if (edd_is_payment_complete($payment->ID)) {
                                    if ($download_files) {
                                        foreach ($download_files as $filekey => $file) {
                                            $download_url = edd_get_download_file_url($purchase_data['key'], $email, $filekey, $download['id'], $price_id);
                                            ?>

                                                        <div class="edd_download_file">
                                                            <a href="<?php 
                                            echo esc_url($download_url);
                                            ?>
" class="edd_download_file_link">
                                                                <?php 
                                            echo edd_get_file_name($file);
                                            ?>
                                                            </a>
                                                        </div>
开发者ID:vapvarun,项目名称:edd-service-extended,代码行数:31,代码来源:edd-history_downloads.php

示例10: column_email

 /**
  * Render the Email Column
  *
  * @access public
  * @since 1.4
  * @param array $payment Contains all the data of the payment
  * @return string Data shown in the Email column
  */
 public function column_email($payment)
 {
     $row_actions = array();
     if (edd_is_payment_complete($payment->ID)) {
         $row_actions['email_links'] = '<a href="' . add_query_arg(array('edd-action' => 'email_links', 'purchase_id' => $payment->ID), $this->base_url) . '">' . __('Resend Purchase Receipt', 'edd') . '</a>';
     }
     $row_actions['delete'] = '<a href="' . wp_nonce_url(add_query_arg(array('edd-action' => 'delete_payment', 'purchase_id' => $payment->ID), $this->base_url), 'edd_payment_nonce') . '">' . __('Delete', 'edd') . '</a>';
     $row_actions = apply_filters('edd_payment_row_actions', $row_actions, $payment);
     $email = edd_get_payment_user_email($payment->ID);
     if (empty($email)) {
         $payment->user_info['email'] = __('(unknown)', 'edd');
     }
     $value = $email . $this->row_actions($row_actions);
     return apply_filters('edd_payments_table_column', $value, $payment->ID, 'email');
 }
开发者ID:berkapavel,项目名称:Easy-Digital-Downloads,代码行数:23,代码来源:class-payments-table.php

示例11: edd_payment_history_page


//.........这里部分代码省略.........
        ?>
</th>
					</tr>
				</tfoot>
				<tbody>
					<?php 
        if ($payments) {
            $i = 0;
            foreach ($payments as $payment) {
                ?>
							
								<?php 
                $payment_meta = get_post_meta($payment->ID, '_edd_payment_meta', true);
                $user_info = maybe_unserialize($payment_meta['user_info']);
                $classes = array();
                $classes[] = edd_is_odd($i) ? 'alternate' : '';
                $payment_classes = get_post_class(apply_filters('edd_payment_row_classes', $classes), $payment->ID);
                ?>
								<tr class="edd_payment <?php 
                echo implode(' ', $payment_classes);
                ?>
">
									<td>
										<?php 
                echo $payment->ID;
                ?>
									</td>
									<td>
										<?php 
                echo $payment_meta['email'];
                ?>
										<div class="row-actions">
											<?php 
                $row_actions = array('edit' => '<a href="' . add_query_arg(array('edd-action' => 'edit-payment', 'purchase_id' => $payment->ID)) . '">' . __('Edit', 'edd') . '</a>', 'email_links' => edd_is_payment_complete($payment->ID) ? '<a href="' . add_query_arg(array('edd-action' => 'email_links', 'purchase_id' => $payment->ID)) . '">' . __('Resend Purchase Receipt', 'edd') . '</a>' : NULL, 'delete' => '<a href="' . wp_nonce_url(add_query_arg(array('edd-action' => 'delete_payment', 'purchase_id' => $payment->ID)), 'edd_payment_nonce') . '">' . __('Delete', 'edd') . '</a>');
                $row_actions = apply_filters('edd_payment_row_actions', $row_actions, $payment);
                $action_count = count($row_actions);
                $i = 1;
                foreach ($row_actions as $key => $action) {
                    if ($action_count == $i) {
                        $sep = '';
                    } else {
                        $sep = ' | ';
                    }
                    echo !is_null($action) ? '<span class="' . $key . '">' . $action . '</span>' . $sep : '';
                    $i++;
                }
                ?>
										</div>
									</td>
									<td><a href="#TB_inline?width=640&amp;inlineId=purchased-files-<?php 
                echo $payment->ID;
                ?>
" class="thickbox" title="<?php 
                printf(__('Purchase Details for Payment #%s', 'edd'), $payment->ID);
                ?>
 "><?php 
                _e('View Order Details', 'edd');
                ?>
</a>
										<div id="purchased-files-<?php 
                echo $payment->ID;
                ?>
" style="display:none;">
											<?php 
                $downloads = isset($payment_meta['cart_details']) ? maybe_unserialize($payment_meta['cart_details']) : false;
                if (empty($downloads) || !$downloads) {
开发者ID:ryannmicua,项目名称:Easy-Digital-Downloads,代码行数:67,代码来源:payments-history.php

示例12: column_email

 /**
  * Render the email column
  *
  * @access      private
  * @since       1.3.4
  * @return      string
  */
 function column_email($item)
 {
     $payment = get_post($item['ID']);
     $base = admin_url('edit.php?post_type=download&page=edd-payment-history&edd-action=edit-payment&purchase_id=' . $item['ID']);
     $row_actions = array();
     $row_actions['edit'] = '<a href="' . add_query_arg(array('edd-action' => 'edit-payment', 'purchase_id' => $payment->ID)) . '">' . __('Edit', 'edd') . '</a>';
     if (edd_is_payment_complete($payment->ID)) {
         $row_actions['email_links'] = '<a href="' . add_query_arg(array('edd-action' => 'email_links', 'purchase_id' => $payment->ID)) . '">' . __('Resend Purchase Receipt', 'edd') . '</a>';
     }
     $row_actions['delete'] = '<a href="' . wp_nonce_url(add_query_arg(array('edd-action' => 'delete_payment', 'purchase_id' => $payment->ID)), 'edd_payment_nonce') . '">' . __('Delete', 'edd') . '</a>';
     $row_actions = apply_filters('edd_payment_row_actions', $row_actions, $payment);
     return $item['email'] . $this->row_actions($row_actions);
 }
开发者ID:vheidari,项目名称:Easy-Digital-Downloads,代码行数:20,代码来源:class-payments-table.php


注:本文中的edd_is_payment_complete函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。