/** * {@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); }
/** * {@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); }
/** * @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); }
/** * {@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); }