コード例 #1
0
ファイル: signed.php プロジェクト: trustly/trustly-client-php
 /**
  * Call the API with the prepared request
  *
  * @throws Trustly_DataException Upon failure to add all the communication
  *		parameters to the data or if the incoming data fails the basic
  *		sanity checks
  *
  * @throws Trustly_ConnectionException When failing to communicate with the
  *		API.
  *
  * @throws Trustly_SignatureException If the incoming message has an
  *		invalid signature
  *
  * @param Trustly_Data_JSONRPCRequest $request Outgoing request
  *
  * @return Trustly_Data_JSONRPCSignedResponse Response from the API.
  */
 public function call($request)
 {
     $uuid = $request->getUUID();
     if ($uuid === NULL) {
         $request->setUUID($this->generateUUID());
     }
     return parent::call($request);
 }