当前位置: 首页>>代码示例>>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;未经允许,请勿转载。