예제 #1
0
 /**
  * Verify Signature 
  * 
  * Verify the signature that FPS sent in IPN or callback urls.
  * 
  * @see http://docs.amazonwebservices.com/${docPath}VerifySignature.html
  * @param mixed $request array of parameters for Amazon_FPS_Model_VerifySignatureRequest request
  * or Amazon_FPS_Model_VerifySignatureRequest object itself
  * @see Amazon_FPS_Model_VerifySignature
  * @return Amazon_FPS_Model_VerifySignatureResponse Amazon_FPS_Model_VerifySignatureResponse
  *
  * @throws Amazon_FPS_Exception
  */
 public function verifySignature($request)
 {
     if (!$request instanceof Amazon_FPS_Model_VerifySignatureRequest) {
         //require_once('Amazon/FPS/Model/VerifySignatureRequest.php');
         $request = new Amazon_FPS_Model_VerifySignatureRequest($request);
     }
     //require_once('Amazon/FPS/Model/VerifySignatureResponse.php');
     return Amazon_FPS_Model_VerifySignatureResponse::fromXML($this->_invoke($this->_convertVerifySignature($request)));
 }
예제 #2
0
 /**
  * Verify Signature 
  * 
  * Verify the signature that FPS sent in IPN or callback urls.
  *   
  * @see http://docs.amazonwebservices.com/${docPath}VerifySignature.html      
  * @param mixed $request array of parameters for Amazon_FPS_Model_VerifySignature request or Amazon_FPS_Model_VerifySignature object itself
  * @see Amazon_FPS_Model_VerifySignature
  * @return Amazon_FPS_Model_VerifySignatureResponse Amazon_FPS_Model_VerifySignatureResponse
  *
  * @throws Amazon_FPS_Exception
  */
 public function verifySignature($request)
 {
     require_once 'Amazon/FPS/Model/VerifySignatureResponse.php';
     return Amazon_FPS_Model_VerifySignatureResponse::fromXML($this->_invoke('VerifySignature'));
 }