AuthorizeNetCIM

Extends \AuthorizeNetRequest

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

package

AuthorizeNet

subpackage

AuthorizeNetCIM

Methods

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

setRefId(string $refId) 

Arguments

$refId

string

Create a customer profile.

createCustomerProfile(\AuthorizeNetCustomer $customerProfile, string $validationMode = "none") : \AuthorizeNetCIM_Response

Arguments

$customerProfile

\AuthorizeNetCustomer

$validationMode

string

Response

\AuthorizeNetCIM_Response

Create a customer payment profile.

createCustomerPaymentProfile(int $customerProfileId, \AuthorizeNetPaymentProfile $paymentProfile, string $validationMode = "none") : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$paymentProfile

\AuthorizeNetPaymentProfile

$validationMode

string

Response

\AuthorizeNetCIM_Response

Create a shipping address.

createCustomerShippingAddress(int $customerProfileId, \AuthorizeNetAddress $shippingAddress) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$shippingAddress

\AuthorizeNetAddress

Response

\AuthorizeNetCIM_Response

Create a transaction.

createCustomerProfileTransaction(string $transactionType, \AuthorizeNetTransaction $transaction, string $extraOptionsString = "") : \AuthorizeNetCIM_Response

Arguments

$transactionType

string

$extraOptionsString

string

Response

\AuthorizeNetCIM_Response

Delete a customer profile.

deleteCustomerProfile(int $customerProfileId) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

Response

\AuthorizeNetCIM_Response

Delete a payment profile.

deleteCustomerPaymentProfile(int $customerProfileId, int $customerPaymentProfileId) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerPaymentProfileId

int

Response

\AuthorizeNetCIM_Response

Delete a shipping address.

deleteCustomerShippingAddress(int $customerProfileId, int $customerAddressId) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerAddressId

int

Response

\AuthorizeNetCIM_Response

Get all customer profile ids.

getCustomerProfileIds() : \AuthorizeNetCIM_Response

Get a customer profile.

getCustomerProfile(int $customerProfileId) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

Response

\AuthorizeNetCIM_Response

Get a payment profile.

getCustomerPaymentProfile(int $customerProfileId, int $customerPaymentProfileId) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerPaymentProfileId

int

Response

\AuthorizeNetCIM_Response

Get a shipping address.

getCustomerShippingAddress(int $customerProfileId, int $customerAddressId) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerAddressId

int

Response

\AuthorizeNetCIM_Response

Update a profile.

updateCustomerProfile(int $customerProfileId, \AuthorizeNetCustomer $customerProfile) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerProfile

\AuthorizeNetCustomer

Response

\AuthorizeNetCIM_Response

Update a payment profile.

updateCustomerPaymentProfile(int $customerProfileId, int $customerPaymentProfileId, \AuthorizeNetPaymentProfile $paymentProfile, string $validationMode = "none") : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerPaymentProfileId

int

$paymentProfile

\AuthorizeNetPaymentProfile

$validationMode

string

Response

\AuthorizeNetCIM_Response

Update a shipping address.

updateCustomerShippingAddress(int $customerProfileId, int $customerShippingAddressId, \AuthorizeNetAddress $shippingAddress) : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerShippingAddressId

int

$shippingAddress

\AuthorizeNetAddress

Response

\AuthorizeNetCIM_Response

Update the status of an existing order that contains multiple transactions with the same splitTenderId.

updateSplitTenderGroup(int $splitTenderId, string $splitTenderStatus) : \AuthorizeNetCIM_Response

Arguments

$splitTenderId

int

$splitTenderStatus

string

Response

\AuthorizeNetCIM_Response

Validate a customer payment profile.

validateCustomerPaymentProfile(int $customerProfileId, int $customerPaymentProfileId, int $customerShippingAddressId, int $cardCode, string $validationMode = "testMode") : \AuthorizeNetCIM_Response

Arguments

$customerProfileId

int

$customerPaymentProfileId

int

$customerShippingAddressId

int

$cardCode

int

$validationMode

string

Response

\AuthorizeNetCIM_Response

_getPostUrl

_getPostUrl() : string

Response

string

_handleResponse

_handleResponse(string $response) : \AuthorizeNetCIM_Response

Arguments

$response

string

Response

\AuthorizeNetCIM_Response

Prepare the XML post string.

_setPostString() 

Start the SimpleXMLElement that will be posted.

_constructXml(string $request_type) 

Arguments

$request_type

string

The action to be performed.

Add an object to an SimpleXMLElement parent element.

_addObject(\SimpleXMLElement $destination, Object $object) 

Arguments

$destination

\SimpleXMLElement

The parent element.

$object

Object

An object, array or value.

Checks whether an array or object contains any values.

_notEmpty(Object $object) : bool
static

Arguments

$object

Object

Response

bool

Constructor.

__construct(string $api_login_id = false, string $transaction_key = false) 
inherited

Arguments

$api_login_id

string

The Merchant's API Login ID.

$transaction_key

string

The Merchant's Transaction Key.

Alter the gateway url.

setSandbox(bool $bool) 
inherited

Arguments

$bool

bool

Use the Sandbox.

Set a log file.

setLogFile(string $filepath) 
inherited

Arguments

$filepath

string

Path to log file.

Return the post string.

getPostString() : string
inherited

Response

string

Posts the request to AuthorizeNet & returns response.

_sendRequest() : \AuthorizeNetARB_Response
inherited

Response

\AuthorizeNetARB_Response

The response.

Constants

LIVE_URL

LIVE_URL

SANDBOX_URL

SANDBOX_URL

Properties

_xml

_xml

_refId

_refId

_validationMode

_validationMode

_extraOptions

_extraOptions

_transactionTypes

_transactionTypes

_transaction_key

_transaction_key
inherited

_post_string

_post_string
inherited

VERIFY_PEER

VERIFY_PEER
inherited

_sandbox

_sandbox
inherited

_log_file

_log_file
inherited


                                
inherited


                                
inherited


                                
inherited


                                
inherited


                                
inherited


                                
inherited


                                
inherited