/**
  * Renders payment system configuration form
  */
 public function actionRenderConfigurationForm()
 {
     $systemId = Yii::app()->request->getQuery('system');
     $paymentMethodId = Yii::app()->request->getQuery('payment_method_id');
     if (empty($systemId)) {
         exit;
     }
     $manager = new SPaymentSystemManager();
     $system = $manager->getSystemClass($systemId);
     echo $system->getConfigurationFormHtml($paymentMethodId);
 }
 public function testGetSystemClass()
 {
     $manager = new SPaymentSystemManager();
     $class = $manager->getSystemClass('webmoney');
     $this->assertTrue($class instanceof BasePaymentSystem);
 }
 /**
  * @return null|BasePaymentSystem
  */
 public function getPaymentSystemClass()
 {
     if ($this->payment_system) {
         $manager = new SPaymentSystemManager();
         return $manager->getSystemClass($this->payment_system);
     }
 }