示例#1
0
 /**
  * {@inheritdoc}
  * @see Paranoia\Payment\Adapter\AdapterAbstract::buildRequest()
  */
 protected function buildRequest(Request $request, $requestBuilder)
 {
     $rawRequest = call_user_func(array($this, $requestBuilder), $request);
     $serializer = new Serializer(Serializer::XML);
     $xml = $serializer->serialize(array_merge($this->buildBaseRequest(), $rawRequest), array('root_name' => 'posnetRequest'));
     return array('xmldata' => $xml);
 }
示例#2
0
 /**
  * {@inheritdoc}
  * @see Paranoia\Payment\Adapter\AdapterAbstract::buildRequest()
  */
 protected function buildConfirmRequest(ConfirmRequest $confirmRequest, $requestBuilder)
 {
     $rawRequest = call_user_func(array($this, $requestBuilder), $confirmRequest);
     $serializer = new Serializer(Serializer::XML);
     $xml = $serializer->serialize(array_merge($rawRequest, $this->buildBaseRequest()), array('root_name' => 'CC5Request'));
     return array('DATA' => $xml);
 }
示例#3
0
 /**
  * @see Paranoia\Payment\Adapter\AdapterAbstract::buildRequest()
  */
 protected function buildRequest(Request $request, $requestBuilder)
 {
     $rawRequest = call_user_func(array($this, $requestBuilder), $request);
     $serializer = new Serializer(Serializer::XML);
     $xml = $serializer->serialize(array_merge($rawRequest, $this->buildBaseRequest()), array('root_name' => 'CC5Request'));
     $data = array('DATA' => $xml);
     $request->setRawData($xml);
     return http_build_query($data);
 }
示例#4
0
 /**
  * {@inheritdoc}
  * @see Paranoia\Payment\Adapter\AdapterAbstract::buildRequest()
  */
 protected function buildRequest(Request $request, $requestBuilder)
 {
     $rawRequest = call_user_func(array($this, $requestBuilder), $request);
     $serializer = new Serializer(Serializer::XML);
     $xml = $serializer->serialize($rawRequest, array('root_name' => 'GVPSRequest'));
     return array('data' => $xml);
 }