/** * 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); }
/** * Tests exception * * @expectedException WebToPay_Exception_Configuration */ public function testGetPaymentMethodListProviderWithoutConfiguration() { $this->factoryWithoutConfiguration->getPaymentMethodListProvider(); }