Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | CGI_URL = 'https://secure.authorize.net/gateway/transact.dll' |
const | REQUEST_METHOD_CC = 'CC' |
const | REQUEST_TYPE_AUTH_CAPTURE = 'AUTH_CAPTURE' |
const | REQUEST_TYPE_AUTH_ONLY = 'AUTH_ONLY' |
const | REQUEST_TYPE_CAPTURE_ONLY = 'CAPTURE_ONLY' |
const | REQUEST_TYPE_CREDIT = 'CREDIT' |
const | REQUEST_TYPE_VOID = 'VOID' |
const | REQUEST_TYPE_PRIOR_AUTH_CAPTURE = 'PRIOR_AUTH_CAPTURE' |
const | RESPONSE_DELIM_CHAR = '(~)' |
const | RESPONSE_CODE_APPROVED = 1 |
const | RESPONSE_CODE_DECLINED = 2 |
const | RESPONSE_CODE_ERROR = 3 |
const | RESPONSE_CODE_HELD = 4 |
const | RESPONSE_REASON_CODE_APPROVED = 1 |
const | RESPONSE_REASON_CODE_PENDING_REVIEW_AUTHORIZED = 252 |
const | RESPONSE_REASON_CODE_PENDING_REVIEW = 253 |
const | RESPONSE_REASON_CODE_PENDING_REVIEW_DECLINED = 254 |
const | TRANSACTION_FRAUD_STATE_KEY = 'is_transaction_fraud' |
const | REAL_TRANSACTION_ID_KEY = 'real_transaction_id' |
const | GATEWAY_ACTIONS_LOCKED_STATE_KEY = 'is_gateway_actions_locked' |
Protected Member Functions | |
getFraudFilters ($fraudFilters) | |
getRequest () | |
isGatewayActionsLocked ($payment) | |
Protected Attributes | |
$dataHelper | |
$requestFactory | |
$responseFactory | |
$transactionService | |
$_debugReplacePrivateDataKeys = ['merchantAuthentication', 'x_login'] | |
$httpClientFactory | |
@SuppressWarnings(PHPMD.TooManyFields) @SuppressWarnings(PHPMD.ExcessiveClassComplexity) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 16 of file Authorizenet.php.
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory, | ||
\Magento\Framework\Api\AttributeValueFactory | $customAttributeFactory, | ||
\Magento\Payment\Helper\Data | $paymentData, | ||
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, | ||
\Magento\Payment\Model\Method\Logger | $logger, | ||
\Magento\Framework\Module\ModuleListInterface | $moduleList, | ||
\Magento\Framework\Stdlib\DateTime\TimezoneInterface | $localeDate, | ||
\Magento\Authorizenet\Helper\Data | $dataHelper, | ||
\Magento\Authorizenet\Model\Request\Factory | $requestFactory, | ||
\Magento\Authorizenet\Model\Response\Factory | $responseFactory, | ||
TransactionService | $transactionService, | ||
ZendClientFactory | $httpClientFactory, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource = null , |
||
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null , |
||
array | $data = [] |
||
) |
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory | |
\Magento\Framework\Api\AttributeValueFactory | $customAttributeFactory | |
\Magento\Payment\Helper\Data | $paymentData | |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
\Magento\Payment\Model\Method\Logger | $logger | |
\Magento\Framework\Module\ModuleListInterface | $moduleList | |
\Magento\Framework\Stdlib\DateTime\TimezoneInterface | $localeDate | |
\Magento\Authorizenet\Helper\Data | $dataHelper | |
\Magento\Authorizenet\Model\Request\Factory | $requestFactory | |
\Magento\Authorizenet\Model\Response\Factory | $responseFactory | |
\Magento\Authorizenet\Model\TransactionService | $transactionService | |
\Magento\Framework\HTTP\ZendClientFactory | $httpClientFactory | |
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource | |
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
array | $data | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 126 of file Authorizenet.php.
cancel | ( | \Magento\Payment\Model\InfoInterface | $payment | ) |
Cancel the payment through gateway
\Magento\Payment\Model\InfoInterface | $payment |
Definition at line 202 of file Authorizenet.php.
canUseForCurrency | ( | $currencyCode | ) |
Check method for processing with base currency
string | $currencyCode |
Definition at line 173 of file Authorizenet.php.
fetchTransactionFraudDetails | ( | $transactionId | ) |
Fetch fraud details
string | $transactionId |
Definition at line 214 of file Authorizenet.php.
getAcceptedCurrencyCodes | ( | ) |
Return array of currency codes supplied by Payment Gateway
Definition at line 186 of file Authorizenet.php.
|
protected |
Get fraud filters
\Magento\Framework\Simplexml\Element | $fraudFilters |
Definition at line 240 of file Authorizenet.php.
|
protected |
Return authorize payment request
Definition at line 259 of file Authorizenet.php.
|
protected |
If gateway actions are locked return true
\Magento\Payment\Model\InfoInterface | $payment |
Definition at line 440 of file Authorizenet.php.
|
protected |
Definition at line 99 of file Authorizenet.php.
|
protected |
Definition at line 73 of file Authorizenet.php.
|
protected |
Definition at line 104 of file Authorizenet.php.
|
protected |
Definition at line 80 of file Authorizenet.php.
|
protected |
Definition at line 87 of file Authorizenet.php.
|
protected |
Definition at line 92 of file Authorizenet.php.
const CGI_URL = 'https://secure.authorize.net/gateway/transact.dll' |
AIM gateway url
Definition at line 21 of file Authorizenet.php.
const GATEWAY_ACTIONS_LOCKED_STATE_KEY = 'is_gateway_actions_locked' |
Gateway actions locked state key
Definition at line 68 of file Authorizenet.php.
const REAL_TRANSACTION_ID_KEY = 'real_transaction_id' |
Real transaction id key
Definition at line 63 of file Authorizenet.php.
const REQUEST_METHOD_CC = 'CC' |
Definition at line 23 of file Authorizenet.php.
const REQUEST_TYPE_AUTH_CAPTURE = 'AUTH_CAPTURE' |
Definition at line 25 of file Authorizenet.php.
const REQUEST_TYPE_AUTH_ONLY = 'AUTH_ONLY' |
Definition at line 27 of file Authorizenet.php.
const REQUEST_TYPE_CAPTURE_ONLY = 'CAPTURE_ONLY' |
Definition at line 29 of file Authorizenet.php.
const REQUEST_TYPE_CREDIT = 'CREDIT' |
Definition at line 31 of file Authorizenet.php.
const REQUEST_TYPE_PRIOR_AUTH_CAPTURE = 'PRIOR_AUTH_CAPTURE' |
Definition at line 35 of file Authorizenet.php.
const REQUEST_TYPE_VOID = 'VOID' |
Definition at line 33 of file Authorizenet.php.
const RESPONSE_CODE_APPROVED = 1 |
Definition at line 39 of file Authorizenet.php.
const RESPONSE_CODE_DECLINED = 2 |
Definition at line 41 of file Authorizenet.php.
const RESPONSE_CODE_ERROR = 3 |
Definition at line 43 of file Authorizenet.php.
const RESPONSE_CODE_HELD = 4 |
Definition at line 45 of file Authorizenet.php.
const RESPONSE_DELIM_CHAR = '(~)' |
Definition at line 37 of file Authorizenet.php.
const RESPONSE_REASON_CODE_APPROVED = 1 |
Definition at line 47 of file Authorizenet.php.
const RESPONSE_REASON_CODE_PENDING_REVIEW = 253 |
Definition at line 51 of file Authorizenet.php.
const RESPONSE_REASON_CODE_PENDING_REVIEW_AUTHORIZED = 252 |
Definition at line 49 of file Authorizenet.php.
const RESPONSE_REASON_CODE_PENDING_REVIEW_DECLINED = 254 |
Definition at line 53 of file Authorizenet.php.
const TRANSACTION_FRAUD_STATE_KEY = 'is_transaction_fraud' |
Transaction fraud state key
Definition at line 58 of file Authorizenet.php.