/** * {@inheritdoc} */ public function handleRequest(Config $config) { $parameters = array('ep_cin' => $this->paymentNotification->getCin(), 'ep_user' => $this->paymentNotification->getUser(), 'ep_doc' => $this->paymentNotification->getDoc(), 'ep_type' => $this->paymentNotification->getType()); // Optional authentication code if ($config->getCode()) { $parameters['s_code'] = $config->getCode(); } return $parameters; }
public function testConstructorGettersSetters() { $notification = new PaymentNotification('cin', 'user', 'doc', 'type'); $this->assertSame('cin', $notification->getCin()); $this->assertSame('user', $notification->getUser()); $this->assertSame('doc', $notification->getDoc()); $this->assertSame('type', $notification->getType()); }