Public Member Functions | |
getTransactionId () | |
Protected Member Functions | |
parse ($responseBody) |
Definition at line 34 of file Refund.php.
getTransactionId | ( | ) |
Return response TransactionId
Definition at line 63 of file Refund.php.
00064 { 00065 return $this->getData('TransactionId'); 00066 }
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 Refund.php.
00040 { 00041 if ($responseBody->getName() != 'RefundResponse') { 00042 return false; 00043 } 00044 00045 $transactionId = (string)$responseBody->RefundResult->TransactionId; 00046 $transactionStatus = (string)$responseBody->RefundResult->TransactionStatus; 00047 00048 if($transactionId == '' || $transactionStatus == '') { 00049 return false; 00050 } 00051 00052 $this->setData('TransactionId', $transactionId); 00053 $this->setData('Status', $transactionStatus); 00054 00055 return parent::parse($responseBody); 00056 }