Public Member Functions | |
getCode () | |
getMessage () | |
Protected Member Functions | |
parse ($responseBody) |
Definition at line 34 of file Error.php.
getCode | ( | ) |
getMessage | ( | ) |
parse | ( | $ | responseBody | ) | [protected] |
rewrited for Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Abstract
Reimplemented from Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Abstract.
Definition at line 39 of file Error.php.
00040 { 00041 if ($responseBody->getName() != 'Response') { 00042 return false; 00043 } 00044 00045 $code = (string)$responseBody->Errors->Error->Code; 00046 $message = (string)$responseBody->Errors->Error->Message; 00047 $responseId = (string)$responseBody->RequestID; 00048 00049 if($code == '' || $message == '' || $responseId == '') { 00050 return false; 00051 } 00052 00053 $this->setData('Id', $responseId); 00054 $this->setData('Status', parent::STATUS_ERROR); 00055 $this->setData('Code', $code); 00056 $this->setData('Message', $message); 00057 return true; 00058 }