M2_AuthorizeNetCIM_Response

A class to parse a response from the CIM XML API.

Defined (1)

The class is defined in the following location(s).

/lib/authorize.net/lib/AuthorizeNetCIM.php  
  1. class M2_AuthorizeNetCIM_Response extends M2_AuthorizeNetXMLResponse 
  2. /** 
  3. * @return AuthorizeNetAIM_Response 
  4. */ 
  5. public function getTransactionResponse() 
  6. return new M2_AuthorizeNetAIM_Response($this->_getElementContents("directResponse"), ", ", "|", array()); 
  7.  
  8. /** 
  9. * @return array Array of AuthorizeNetAIM_Response objects for each payment profile. 
  10. */ 
  11. public function getValidationResponses() 
  12. $responses = (array)$this->xml->validationDirectResponseList; 
  13. $return = array(); 
  14. foreach ((array)$responses["string"] as $response) { 
  15. $return[] = new M2_AuthorizeNetAIM_Response($response, ", ", "", array()); 
  16. return $return; 
  17.  
  18. /** 
  19. * @return AuthorizeNetAIM_Response 
  20. */ 
  21. public function getValidationResponse() 
  22. return new M2_AuthorizeNetAIM_Response($this->_getElementContents("validationDirectResponse"), ", ", "|", array()); 
  23.  
  24. /** 
  25. * @return array 
  26. */ 
  27. public function getCustomerProfileIds() 
  28. $ids = (array)$this->xml->ids; 
  29. return $ids["numericString"]; 
  30.  
  31. /** 
  32. * @return array 
  33. */ 
  34. public function getCustomerPaymentProfileIds() 
  35. $ids = (array)$this->xml->customerPaymentProfileIdList; 
  36. return $ids["numericString"]; 
  37.  
  38. /** 
  39. * @return array 
  40. */ 
  41. public function getCustomerShippingAddressIds() 
  42. $ids = (array)$this->xml->customerShippingAddressIdList; 
  43. return $ids["numericString"]; 
  44.  
  45. /** 
  46. * @return string 
  47. */ 
  48. public function getCustomerAddressId() 
  49. return $this->_getElementContents("customerAddressId"); 
  50.  
  51. /** 
  52. * @return string 
  53. */ 
  54. public function getCustomerProfileId() 
  55. return $this->_getElementContents("customerProfileId"); 
  56.  
  57. /** 
  58. * @return string 
  59. */ 
  60. public function getPaymentProfileId() 
  61. return $this->_getElementContents("customerPaymentProfileId"); 
  62.