Ejemplo n.º 1
0
 /**
  * Callback for populating the outgoing request with the criterias needed
  * for communication. Username/password as well as a signature.
  *
  * @param Trustly_Data_JSONRPCRequest $request Request to be used in the outgoing
  *		call
  */
 protected function insertCredentials($request)
 {
     $request->setData('Username', $this->api_username);
     $request->setData('Password', $this->api_password);
     $signature = $this->signMerchantRequest($request);
     if ($signature === FALSE) {
         return FALSE;
     }
     $request->setParam('Signature', $signature);
     return TRUE;
 }