示例#1
0
 /**
  * Returns new country instance with only those payment methods, which are returns or not iban number after payment
  *
  * @param boolean $isIban
  *
  * @return WebToPay_PaymentMethodGroup
  */
 public function filterForIban($isIban = true)
 {
     $group = new WebToPay_PaymentMethodGroup($this->groupKey, $this->translations, $this->defaultLanguage);
     foreach ($this->getPaymentMethods() as $paymentMethod) {
         if ($paymentMethod->isIban() == $isIban) {
             $group->addPaymentMethod($paymentMethod);
         }
     }
     return $group;
 }