protected function createPaymentResponse($name, $params)
 {
     $options = $this->getPaymentOptions($name);
     $response = Payment::createResponse($name, $options);
     return $response->setParams($params);
 }