當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Am_Paysystem_Abstract::isNotAcceptableForInvoice方法代碼示例

本文整理匯總了PHP中Am_Paysystem_Abstract::isNotAcceptableForInvoice方法的典型用法代碼示例。如果您正苦於以下問題:PHP Am_Paysystem_Abstract::isNotAcceptableForInvoice方法的具體用法?PHP Am_Paysystem_Abstract::isNotAcceptableForInvoice怎麽用?PHP Am_Paysystem_Abstract::isNotAcceptableForInvoice使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Am_Paysystem_Abstract的用法示例。


在下文中一共展示了Am_Paysystem_Abstract::isNotAcceptableForInvoice方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if ($invoice->rebill_times) {
         return "Interkassa cannot handle products with recurring payment plan";
     }
     return parent::isNotAcceptableForInvoice($invoice);
 }
開發者ID:irovast,項目名稱:eyedock,代碼行數:7,代碼來源:interkassa.php

示例2: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if (!in_array($invoice->rebill_times, array(0, IProduct::RECURRING_REBILLS))) {
         return 'Can not handle invoice with defined rebill times';
     }
     return parent::isNotAcceptableForInvoice($invoice);
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:7,代碼來源:paymentwall.php

示例3: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if ($invoice->rebill_times && $invoice->first_period != $invoice->second_period) {
         return "WorldPay cannot handle products with different first and second period";
     }
     return parent::isNotAcceptableForInvoice($invoice);
 }
開發者ID:subashemphasize,項目名稱:test_site,代碼行數:7,代碼來源:worldpay.php

示例4: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if ($err = parent::isNotAcceptableForInvoice($invoice)) {
         return $err;
     }
     if ($invoice->rebill_times >= 1 && ($err = $this->checkPeriod(new Am_Period($invoice->first_period)))) {
         return array($err);
     }
     if ($invoice->rebill_times >= 2 && ($err = $this->checkPeriod(new Am_Period($invoice->second_period)))) {
         return array($err);
     }
 }
開發者ID:subashemphasize,項目名稱:test_site,代碼行數:12,代碼來源:paypal.php

示例5: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if ($ret = parent::isNotAcceptableForInvoice($invoice)) {
         return $ret;
     }
     foreach ($invoice->getItems() as $item) {
         if (!(double) $item->first_total && (double) $item->second_total) {
             return array("2Checkout does not support products with free trial");
         }
         if ($item->rebill_times && $item->second_period != $item->first_period) {
             return array(___("2Checkout is unable to handle billing for product [{$item->item_title}] - second_period must be equal to first_period"));
         }
     }
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:14,代碼來源:twocheckout.php

示例6: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if ($invoice->first_period != $invoice->second_period) {
         return ___('Can not handle this billing terms');
     }
     if ($invoice->rebill_times != IProduct::RECURRING_REBILLS) {
         return ___('Can not handle this billing terms');
     }
     $period = new Am_Period($invoice->first_period);
     if (!in_array($period->getUnit(), array('m', 'w', 'y')) || $period->getCount() != 1) {
         return ___('Can not handle this billing terms');
     }
     return parent::isNotAcceptableForInvoice($invoice);
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:14,代碼來源:smart-debit-dl.php

示例7: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if ($err = parent::isNotAcceptableForInvoice($invoice)) {
         return $err;
     }
     if ($invoice->rebill_times >= 1 && ($err = $this->checkPeriod(new Am_Period($invoice->first_period)))) {
         return array($err);
     }
     if ($invoice->rebill_times >= 2 && ($err = $this->checkPeriod(new Am_Period($invoice->second_period)))) {
         return array($err);
     }
     if ($invoice->rebill_times != IProduct::RECURRING_REBILLS && $invoice->rebill_times > 52) {
         return array('PayPal can not handle subscription terms with number of rebills more than 52');
     }
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:15,代碼來源:paypal.php

示例8: isNotAcceptableForInvoice

 public function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if ($invoice->rebill_times) {
         $first_period = new Am_Period($invoice->first_period);
         if (!(double) $invoice->first_total) {
             return ___('Can not handle this billing terms');
         }
         if ($invoice->first_period != $invoice->second_period && $first_period->getUnit() != 'd') {
             return ___('Can not handle this billing terms');
         }
         if (!in_array($invoice->second_period, array_keys($this->rebill_type_map))) {
             return ___('Can not handle this billing terms');
         }
     }
     return parent::isNotAcceptableForInvoice($invoice);
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:16,代碼來源:dalpay-checkout.php

示例9: isNotAcceptableForInvoice

 function isNotAcceptableForInvoice(Invoice $invoice)
 {
     if (!$invoice->first_total) {
         return "Free trials are not supported!";
     }
     if ($invoice->rebill_times) {
         try {
             $this->getPeriod($invoice->second_period);
         } catch (Exception $e) {
             return $e->getMessage();
         }
     }
     return parent::isNotAcceptableForInvoice($invoice);
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:14,代碼來源:paypoint.php


注:本文中的Am_Paysystem_Abstract::isNotAcceptableForInvoice方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。