Builds and sends an AuthorizeNet AIM Request.
package |
AuthorizeNet |
---|---|
subpackage |
AuthorizeNetAIM |
priorAuthCapture(string $trans_id = false, string $amount = false) : \AuthorizeNetAIM_Response
Required "x_" field: trans_id(The transaction id of the prior auth, unless split tender, then set x_split_tender_id manually.) amount (only if lesser than original auth)
string
Transaction id to charge
string
Dollar amount to charge if lesser than auth
\AuthorizeNetAIM_Response
void(string $trans_id = false) : \AuthorizeNetAIM_Response
Required "x_" field: trans_id(The transaction id of the prior auth, unless split tender, then set x_split_tender_id manually.)
string
Transaction id to void
\AuthorizeNetAIM_Response
captureOnly(string $auth_code = false, string $amount = false, string $card_num = false, string $exp_date = false) : \AuthorizeNetAIM_Response
Required "x_" fields: auth_code, amount, card_num , exp_date
string
The auth code
string
The dollar amount to charge
string
The last 4 of credit card number
string
CC expiration date
\AuthorizeNetAIM_Response
credit(string $trans_id = false, string $amount = false, string $card_num = false) : \AuthorizeNetAIM_Response
Required "x_" fields: trans_id, amount, card_num (just the last 4)
string
Transaction id to credit
string
The dollar amount to credit
string
The last 4 of credit card number
\AuthorizeNetAIM_Response
__set(string $name, string $value)
Usage: $sale->method = "echeck";
string
string
setFields(array $fields)
Note: The prefix x_ will be added to all fields. If you want to set a custom field without the x_ prefix, use setCustomField or setCustomFields.
array
Takes an array or object.
setCustomFields(array $fields)
array
addLineItem(string $item_id, string $item_name, string $item_description, string $item_quantity, string $item_unit_price, string $item_taxable)
string
string
string
string
string
string
setECheck($bank_aba_code, $bank_acct_num, $bank_acct_type, $bank_name, $bank_acct_name, $echeck_type = 'WEB')
setField(string $name, string $value)
string
string
setCustomField(string $name, string $value)
string
string
unsetField(string $name)
string
Field to unset.
_handleResponse(string $response) : \AuthorizeNetAIM_Response
_getPostUrl() : string
string
_setPostString()
__construct(string $api_login_id = false, string $transaction_key = false)
string
The Merchant's API Login ID.
string
The Merchant's Transaction Key.
setSandbox(bool $bool)
bool
Use the Sandbox.
setLogFile(string $filepath)
string
Path to log file.
getPostString() : string
string
_sendRequest() : \AuthorizeNetARB_Response
LIVE_URL
SANDBOX_URL
_x_post_fields
Default values are provided for best practice fields.
_additional_line_items
_custom_fields
verify_x_fields
Set to false to skip this check.
_all_aim_fields
Used to warn user if they try to set a field not offered in the API.
_api_login
_transaction_key
_post_string
VERIFY_PEER
_sandbox
_log_file