コード例 #1
0
ファイル: WebToPay.php プロジェクト: ashishvazirani/food
 /**
  * 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();
 }