|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
| 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' |
| acceptPayment | ( | InfoInterface | $payment | ) |
Attempt to accept a payment that us under review
| InfoInterface | $payment |
Implemented in AbstractMethod, Vault, Adapter, NullPaymentProvider, and Agreement.
| assignData | ( | DataObject | $data | ) |
Assign data to info model instance
| DataObject | $data |
Implemented in NullPaymentProvider.
| authorize | ( | \Magento\Payment\Model\InfoInterface | $payment, |
| $amount | |||
| ) |
| canAuthorize | ( | ) |
Check authorize availability
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canCapture | ( | ) |
Check capture availability
Implemented in Directpost, Express, AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canCaptureOnce | ( | ) |
Check whether capture can be performed once and no further capture possible
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canCapturePartial | ( | ) |
Check partial capture availability
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| cancel | ( | \Magento\Payment\Model\InfoInterface | $payment | ) |
| canEdit | ( | ) |
Can be edit order (renew order)
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canFetchTransactionInfo | ( | ) |
Check fetch transaction info availability
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canOrder | ( | ) |
Check order availability
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canRefund | ( | ) |
Check refund availability
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canRefundPartialPerInvoice | ( | ) |
Check partial refund availability for invoice
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canReviewPayment | ( | ) |
Whether this method can accept or deny payment
Implemented in AbstractMethod, Vault, Express, NullPaymentProvider, Agreement, and Adapter.
| canUseCheckout | ( | ) |
Can be used in regular checkout
Implemented in AbstractMethod, Vault, Express, Adapter, and NullPaymentProvider.
| canUseForCountry | ( | $country | ) |
To check billing country is allowed for the payment method
| string | $country |
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canUseForCurrency | ( | $currencyCode | ) |
Check method for processing with base currency
| string | $currencyCode |
Implemented in AbstractMethod, Vault, Adapter, Express, and NullPaymentProvider.
| canUseInternal | ( | ) |
Using internal pages for input payment data Can be used in admin
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| canVoid | ( | ) |
Check void availability
Implemented in Express, AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| capture | ( | \Magento\Payment\Model\InfoInterface | $payment, |
| $amount | |||
| ) |
| denyPayment | ( | InfoInterface | $payment | ) |
Attempt to deny a payment that us under review
| InfoInterface | $payment |
Implemented in AbstractMethod, Vault, Adapter, NullPaymentProvider, and Agreement.
| fetchTransactionInfo | ( | InfoInterface | $payment, |
| $transactionId | |||
| ) |
Fetch transaction info
| InfoInterface | $payment | |
| string | $transactionId |
Implemented in AbstractMethod, Adapter, Agreement, Vault, and NullPaymentProvider.
| getCode | ( | ) |
Retrieve payment method code
Implemented in Adapter, AbstractMethod, Vault, NullPaymentProvider, Stub, and AbstractAgreementStub.
| getConfigData | ( | $field, | |
$storeId = null |
|||
| ) |
Retrieve information from payment configuration
| string | $field | |
| int | string | null | \Magento\Store\Model\Store | $storeId |
Implemented in AbstractMethod, Vault, NullPaymentProvider, Adapter, and Express.
| getConfigPaymentAction | ( | ) |
Get config payment action url Used to universalize payment actions when processing payment place
Implemented in AbstractMethod, Adapter, Vault, NullPaymentProvider, Agreement, Express, and Free.
| getFormBlockType | ( | ) |
Retrieve block type for method form generation
Implemented in Adapter, AbstractMethod, Vault, and NullPaymentProvider.
| getInfoBlockType | ( | ) |
Retrieve block type for display method information
Implemented in Adapter, AbstractMethod, Vault, and NullPaymentProvider.
| getInfoInstance | ( | ) |
Retrieve payment information model object
Implemented in Adapter, AbstractMethod, Vault, and NullPaymentProvider.
| getStore | ( | ) |
| getTitle | ( | ) |
Retrieve payment method title
Implemented in AbstractMethod, Adapter, Vault, NullPaymentProvider, and Substitution.
| initialize | ( | $paymentAction, | |
| $stateObject | |||
| ) |
Method that will be executed instead of authorize or capture if flag isInitializeNeeded set to true
| string | $paymentAction | |
| object | $stateObject |
Implemented in AbstractMethod, Adapter, Vault, NullPaymentProvider, and Directpost.
| isActive | ( | $storeId = null | ) |
Is active
| int | null | $storeId |
Implemented in AbstractMethod, Express, Vault, NullPaymentProvider, and Adapter.
| isAvailable | ( | CartInterface | $quote = null | ) |
Check whether payment method can be used
| CartInterface | null | $quote |
Implemented in NullPaymentProvider, and Adapter.
| isGateway | ( | ) |
Retrieve payment system relation flag
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| isInitializeNeeded | ( | ) |
Flag if we need to run payment initialize while order place
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| isOffline | ( | ) |
Retrieve payment method online/offline flag
Implemented in AbstractMethod, Vault, Adapter, and NullPaymentProvider.
| order | ( | \Magento\Payment\Model\InfoInterface | $payment, |
| $amount | |||
| ) |
| refund | ( | \Magento\Payment\Model\InfoInterface | $payment, |
| $amount | |||
| ) |
| setInfoInstance | ( | InfoInterface | $info | ) |
Retrieve payment information model object
| InfoInterface | $info |
Implemented in Adapter, AbstractMethod, Vault, and NullPaymentProvider.
| setStore | ( | $storeId | ) |
Store id setter
| int | $storeId |
Implemented in Adapter, Express, AbstractMethod, Vault, Agreement, and NullPaymentProvider.
| validate | ( | ) |
Validate payment method information object
Implemented in AbstractMethod, Vault, Adapter, NullPaymentProvider, Directpost, Transparent, and Purchaseorder.
| void | ( | \Magento\Payment\Model\InfoInterface | $payment | ) |
| const ACTION_AUTHORIZE = 'authorize' |
Definition at line 23 of file MethodInterface.php.
| const ACTION_AUTHORIZE_CAPTURE = 'authorize_capture' |
Definition at line 25 of file MethodInterface.php.
| const ACTION_ORDER = 'order' |
Different payment actions.
Definition at line 21 of file MethodInterface.php.
| const CHECK_ORDER_TOTAL_MIN_MAX = 'total' |
Definition at line 38 of file MethodInterface.php.
| const CHECK_USE_CHECKOUT = 'checkout' |
Definition at line 34 of file MethodInterface.php.
| const CHECK_USE_FOR_COUNTRY = 'country' |
Different payment method checks.
Definition at line 30 of file MethodInterface.php.
| const CHECK_USE_FOR_CURRENCY = 'currency' |
Definition at line 32 of file MethodInterface.php.
| const CHECK_USE_INTERNAL = 'internal' |
Definition at line 36 of file MethodInterface.php.
| const CHECK_ZERO_TOTAL = 'zero_total' |
Definition at line 40 of file MethodInterface.php.
| const GROUP_OFFLINE = 'offline' |
Definition at line 42 of file MethodInterface.php.