Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Additional Inherited Members | |
![]() | |
const | ACTION_ORDER = 'order' |
const | ACTION_AUTHORIZE = 'authorize' |
const | ACTION_AUTHORIZE_CAPTURE = 'authorize_capture' |
const | CHECK_USE_FOR_COUNTRY = 'country' |
const | CHECK_USE_FOR_CURRENCY = 'currency' |
const | CHECK_USE_CHECKOUT = 'checkout' |
const | CHECK_USE_INTERNAL = 'internal' |
const | CHECK_ORDER_TOTAL_MIN_MAX = 'total' |
const | CHECK_ZERO_TOTAL = 'zero_total' |
const | GROUP_OFFLINE = 'offline' |
Payment method facade. Abstract method adapter
@SuppressWarnings(PHPMD.ExcessivePublicCount) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@api Use this class as a base for virtual types declaration
Definition at line 33 of file Adapter.php.
__construct | ( | ManagerInterface | $eventManager, |
ValueHandlerPoolInterface | $valueHandlerPool, | ||
PaymentDataObjectFactory | $paymentDataObjectFactory, | ||
$code, | |||
$formBlockType, | |||
$infoBlockType, | |||
CommandPoolInterface | $commandPool = null , |
||
ValidatorPoolInterface | $validatorPool = null , |
||
CommandManagerInterface | $commandExecutor = null , |
||
LoggerInterface | $logger = null |
||
) |
ManagerInterface | $eventManager | |
ValueHandlerPoolInterface | $valueHandlerPool | |
PaymentDataObjectFactory | $paymentDataObjectFactory | |
string | $code | |
string | $formBlockType | |
string | $infoBlockType | |
CommandPoolInterface | null | $commandPool | |
ValidatorPoolInterface | null | $validatorPool | |
CommandManagerInterface | null | $commandExecutor | |
LoggerInterface | null | $logger | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 110 of file Adapter.php.
acceptPayment | ( | InfoInterface | $payment | ) |
Attempt to accept a payment that us under review
InfoInterface | $payment |
Implements MethodInterface.
Definition at line 504 of file Adapter.php.
assignData | ( | \Magento\Framework\DataObject | $data | ) |
DataObject | $data |
Definition at line 619 of file Adapter.php.
authorize | ( | InfoInterface | $payment, |
$amount | |||
) |
Definition at line 445 of file Adapter.php.
canAuthorize | ( | ) |
Check authorize availability
Implements MethodInterface.
Definition at line 159 of file Adapter.php.
canCapture | ( | ) |
Check capture availability
Implements MethodInterface.
Definition at line 167 of file Adapter.php.
canCaptureOnce | ( | ) |
Check whether capture can be performed once and no further capture possible
Implements MethodInterface.
Definition at line 183 of file Adapter.php.
canCapturePartial | ( | ) |
Check partial capture availability
Implements MethodInterface.
Definition at line 175 of file Adapter.php.
cancel | ( | InfoInterface | $payment | ) |
Definition at line 484 of file Adapter.php.
canEdit | ( | ) |
Can be edit order (renew order)
Implements MethodInterface.
Definition at line 231 of file Adapter.php.
canFetchTransactionInfo | ( | ) |
Check fetch transaction info availability
Implements MethodInterface.
Definition at line 239 of file Adapter.php.
canOrder | ( | ) |
Check order availability
Implements MethodInterface.
Definition at line 151 of file Adapter.php.
canRefund | ( | ) |
Check refund availability
Implements MethodInterface.
Definition at line 191 of file Adapter.php.
canRefundPartialPerInvoice | ( | ) |
Check partial refund availability for invoice
Implements MethodInterface.
Definition at line 199 of file Adapter.php.
canReviewPayment | ( | ) |
Whether this method can accept or deny payment
Implements MethodInterface.
Definition at line 247 of file Adapter.php.
canUseCheckout | ( | ) |
Can be used in regular checkout
Implements MethodInterface.
Definition at line 223 of file Adapter.php.
canUseForCountry | ( | $country | ) |
To check billing country is allowed for the payment method
string | $country |
Implements MethodInterface.
Definition at line 327 of file Adapter.php.
canUseForCurrency | ( | $currencyCode | ) |
Check method for processing with base currency
string | $currencyCode |
Implements MethodInterface.
Definition at line 342 of file Adapter.php.
canUseInternal | ( | ) |
Using internal pages for input payment data Can be used in admin
Implements MethodInterface.
Definition at line 215 of file Adapter.php.
canVoid | ( | ) |
Check void availability
Implements MethodInterface.
Definition at line 207 of file Adapter.php.
capture | ( | InfoInterface | $payment, |
$amount | |||
) |
Definition at line 458 of file Adapter.php.
denyPayment | ( | InfoInterface | $payment | ) |
Attempt to deny a payment that us under review
InfoInterface | $payment |
Implements MethodInterface.
Definition at line 514 of file Adapter.php.
fetchTransactionInfo | ( | InfoInterface | $payment, |
$transactionId | |||
) |
Fetch transaction info
InfoInterface | $payment | |
string | $transactionId |
Implements MethodInterface.
Definition at line 421 of file Adapter.php.
getCode | ( | ) |
Retrieve payment method code
Implements MethodInterface.
Definition at line 553 of file Adapter.php.
getConfigData | ( | $field, | |
$storeId = null |
|||
) |
Retrieve information from payment configuration
string | $field | |
int | string | null | \Magento\Store\Model\Store | $storeId |
Implements MethodInterface.
Definition at line 389 of file Adapter.php.
getConfigPaymentAction | ( | ) |
Get config payment action url Used to universalize payment actions when processing payment place
Implements MethodInterface.
Definition at line 662 of file Adapter.php.
getFormBlockType | ( | ) |
Retrieve block type for method form generation
Implements MethodInterface.
Definition at line 585 of file Adapter.php.
getInfoBlockType | ( | ) |
Retrieve block type for display method information
Implements MethodInterface.
Definition at line 593 of file Adapter.php.
getInfoInstance | ( | ) |
Retrieve payment information model object
Implements MethodInterface.
Definition at line 601 of file Adapter.php.
getStore | ( | ) |
getTitle | ( | ) |
Retrieve payment method title
Implements MethodInterface.
Definition at line 561 of file Adapter.php.
getValidatorPool | ( | ) |
Returns Validator pool
Definition at line 140 of file Adapter.php.
initialize | ( | $paymentAction, | |
$stateObject | |||
) |
Method that will be executed instead of authorize or capture if flag isInitializeNeeded set to true
string | $paymentAction | |
object | $stateObject |
Implements MethodInterface.
Definition at line 646 of file Adapter.php.
isActive | ( | $storeId = null | ) |
Is active
int | null | $storeId |
Implements MethodInterface.
Definition at line 319 of file Adapter.php.
isAvailable | ( | CartInterface | $quote = null | ) |
Check whether payment method can be used
CartInterface | null | $quote |
Implements MethodInterface.
Definition at line 279 of file Adapter.php.
isGateway | ( | ) |
Retrieve payment system relation flag
Implements MethodInterface.
Definition at line 255 of file Adapter.php.
isInitializeNeeded | ( | ) |
Flag if we need to run payment initialize while order place
Implements MethodInterface.
Definition at line 271 of file Adapter.php.
isOffline | ( | ) |
Retrieve payment method online/offline flag
Implements MethodInterface.
Definition at line 263 of file Adapter.php.
order | ( | InfoInterface | $payment, |
$amount | |||
) |
Definition at line 432 of file Adapter.php.
refund | ( | InfoInterface | $payment, |
$amount | |||
) |
Definition at line 471 of file Adapter.php.
setInfoInstance | ( | InfoInterface | $info | ) |
Retrieve payment information model object
InfoInterface | $info |
Implements MethodInterface.
Definition at line 609 of file Adapter.php.
setStore | ( | $storeId | ) |
Store id setter
int | $storeId |
Implements MethodInterface.
Definition at line 569 of file Adapter.php.
validate | ( | ) |
Validate payment method information object
Implements MethodInterface.
Definition at line 397 of file Adapter.php.
void | ( | InfoInterface | $payment | ) |
Definition at line 494 of file Adapter.php.