예제 #1
0
 /**
  * Gets available payment methods for project. Gets methods min and max amounts in specified currency.
  *
  * @param integer $projectId
  * @param string  $currency
  *
  * @return WebToPay_PaymentMethodList
  *
  * @throws WebToPayException
  */
 public static function getPaymentMethodList($projectId, $currency = 'EUR')
 {
     $factory = new WebToPay_Factory(array('projectId' => $projectId));
     return $factory->getPaymentMethodListProvider()->getPaymentMethodList($currency);
 }
예제 #2
0
 /**
  * Tests exception
  *
  * @expectedException WebToPay_Exception_Configuration
  */
 public function testGetPaymentMethodListProviderWithoutConfiguration()
 {
     $this->factoryWithoutConfiguration->getPaymentMethodListProvider();
 }