Class AuthorizeNetCIM

Description

A class to send a request to the CIM XML API.

Located in /lib/AuthorizeNetCIM.php (line 18)

AuthorizeNetRequest
   |
   --AuthorizeNetCIM
Class Constant Summary
 LIVE_URL = "https://api.authorize.net/xml/v1/request.api"
 SANDBOX_URL = "https://apitest.authorize.net/xml/v1/request.api"
Method Summary
AuthorizeNetCIM_Response createCustomerPaymentProfile (int $customerProfileId, AuthorizeNetPaymentProfile $paymentProfile, [string $validationMode = "none"])
AuthorizeNetCIM_Response createCustomerProfile (AuthorizeNetCustomer $customerProfile, [string $validationMode = "none"])
AuthorizeNetCIM_Response createCustomerProfileTransaction (string $transactionType, AuthorizeNetTransaction $transaction, [string $extraOptionsString = ""])
AuthorizeNetCIM_Response createCustomerShippingAddress (int $customerProfileId, AuthorizeNetAddress $shippingAddress)
AuthorizeNetCIM_Response deleteCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId)
AuthorizeNetCIM_Response deleteCustomerShippingAddress (int $customerProfileId, int $customerAddressId)
AuthorizeNetCIM_Response getCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId)
AuthorizeNetCIM_Response getCustomerProfile (int $customerProfileId)
AuthorizeNetCIM_Response getCustomerShippingAddress (int $customerProfileId, int $customerAddressId)
void setRefId (string $refId)
AuthorizeNetCIM_Response updateCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId, AuthorizeNetPaymentProfile $paymentProfile, [string $validationMode = "testMode"])
AuthorizeNetCIM_Response updateCustomerProfile (int $customerProfileId, AuthorizeNetCustomer $customerProfile, [string $validationMode = "none"])
AuthorizeNetCIM_Response updateCustomerShippingAddress (int $customerProfileId, int $customerShippingAddressId, AuthorizeNetAddress $shippingAddress)
AuthorizeNetCIM_Response validateCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId, int $customerShippingAddressId, int $cardCode, [string $validationMode = "testMode"])
string _getPostUrl ()
void _setPostString ()
Variables
Methods
createCustomerPaymentProfile (line 74)

Create a customer payment profile.

  • access: public
AuthorizeNetCIM_Response createCustomerPaymentProfile (int $customerProfileId, AuthorizeNetPaymentProfile $paymentProfile, [string $validationMode = "none"])
createCustomerProfile (line 56)

Create a customer profile.

  • access: public
AuthorizeNetCIM_Response createCustomerProfile (AuthorizeNetCustomer $customerProfile, [string $validationMode = "none"])
createCustomerProfileTransaction (line 110)

Create a transaction.

  • access: public
AuthorizeNetCIM_Response createCustomerProfileTransaction (string $transactionType, AuthorizeNetTransaction $transaction, [string $extraOptionsString = ""])
createCustomerShippingAddress (line 92)

Create a shipping address.

  • access: public
AuthorizeNetCIM_Response createCustomerShippingAddress (int $customerProfileId, AuthorizeNetAddress $shippingAddress)
deleteCustomerPaymentProfile (line 142)

Delete a payment profile.

  • access: public
AuthorizeNetCIM_Response deleteCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId)
  • int $customerProfileId
  • int $customerPaymentProfileId
deleteCustomerProfile (line 127)

Delete a customer profile.

  • access: public
AuthorizeNetCIM_Response deleteCustomerProfile (int $customerProfileId)
  • int $customerProfileId
deleteCustomerShippingAddress (line 158)

Delete a shipping address.

  • access: public
AuthorizeNetCIM_Response deleteCustomerShippingAddress (int $customerProfileId, int $customerAddressId)
  • int $customerProfileId
  • int $customerAddressId
getCustomerPaymentProfile (line 199)

Get a payment profile.

  • access: public
AuthorizeNetCIM_Response getCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId)
  • int $customerProfileId
  • int $customerPaymentProfileId
getCustomerProfile (line 184)

Get a customer profile.

  • access: public
AuthorizeNetCIM_Response getCustomerProfile (int $customerProfileId)
  • int $customerProfileId
getCustomerProfileIds (line 171)

Get all customer profile ids.

  • access: public
AuthorizeNetCIM_Response getCustomerProfileIds ()
getCustomerShippingAddress (line 215)

Get a shipping address.

  • access: public
AuthorizeNetCIM_Response getCustomerShippingAddress (int $customerProfileId, int $customerAddressId)
  • int $customerProfileId
  • int $customerAddressId
setRefId (line 43)

Optional. Used if the merchant wants to set a reference ID.

  • access: public
void setRefId (string $refId)
  • string $refId
updateCustomerPaymentProfile (line 252)

Update a payment profile.

  • access: public
AuthorizeNetCIM_Response updateCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId, AuthorizeNetPaymentProfile $paymentProfile, [string $validationMode = "testMode"])
updateCustomerProfile (line 232)

Update a profile.

  • access: public
AuthorizeNetCIM_Response updateCustomerProfile (int $customerProfileId, AuthorizeNetCustomer $customerProfile, [string $validationMode = "none"])
updateCustomerShippingAddress (line 272)

Update a shipping address.

  • access: public
AuthorizeNetCIM_Response updateCustomerShippingAddress (int $customerProfileId, int $customerShippingAddressId, AuthorizeNetAddress $shippingAddress)
updateSplitTenderGroup (line 286)

Not yet implemented.

  • access: public
void updateSplitTenderGroup ()
validateCustomerPaymentProfile (line 302)

Validate a customer payment profile.

  • access: public
AuthorizeNetCIM_Response validateCustomerPaymentProfile (int $customerProfileId, int $customerPaymentProfileId, int $customerShippingAddressId, int $cardCode, [string $validationMode = "testMode"])
  • int $customerProfileId
  • int $customerPaymentProfileId
  • int $customerShippingAddressId
  • int $cardCode
  • string $validationMode
_getPostUrl (line 316)
  • access: protected
string _getPostUrl ()

Redefinition of:
AuthorizeNetRequest::_getPostUrl()
Get the post url. We need this because until 5.3 you you could not access child constants in a parent class.
_handleResponse (line 328)
  • access: protected
AuthorizeNetCIM_Response _handleResponse (string $response)
  • string $response

Redefinition of:
AuthorizeNetRequest::_handleResponse()
Handle the response string
_setPostString (line 336)

Prepare the XML post string.

  • access: protected
void _setPostString ()

Redefinition of:
AuthorizeNetRequest::_setPostString()
Set the _post_string

Inherited Methods

Inherited From AuthorizeNetRequest

AuthorizeNetRequest::__construct()
AuthorizeNetRequest::getPostString()
AuthorizeNetRequest::setLogFile()
AuthorizeNetRequest::setSandbox()
AuthorizeNetRequest::_getPostUrl()
AuthorizeNetRequest::_handleResponse()
AuthorizeNetRequest::_sendRequest()
AuthorizeNetRequest::_setPostString()
Class Constants
LIVE_URL = "https://api.authorize.net/xml/v1/request.api" (line 21)
SANDBOX_URL = "https://apitest.authorize.net/xml/v1/request.api" (line 22)

Documentation generated on Thu, 21 Oct 2010 17:30:59 +0000 by phpDocumentor 1.4.3