コード例 #1
0
 protected function addRequestContentTypeIfNull()
 {
     if ($this->request->getContent() != null) {
         return;
     }
     $this->request->setContent(new RequestContentType());
 }
コード例 #2
0
 /**
  * @param $transactionId
  * @param $subType
  * @param RequestType $req
  * @throws RatePAYException
  * @throws TechnicalErrorException
  * @throws WarningException
  * @throws RejectionException
  * @return ResponseType
  */
 public function confirmationDeliver($transactionId, RequestType $req)
 {
     $req->getHead()->setTransactionId($transactionId);
     $req->getHead()->getOperation()->setValue(OperationType::OPERATION_CONFIRMATION_DELIVER);
     $res = $this->gatewayClient->postRequest($req);
     $this->validateResponse($res, 404, 401, 150, 405);
     return $res;
 }