|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\App\Helper\Context $context, LayoutFactory $layoutFactory, \Magento\Payment\Model\Method\Factory $paymentMethodFactory, \Magento\Store\Model\App\Emulation $appEmulation, \Magento\Payment\Model\Config $paymentConfig, \Magento\Framework\App\Config\Initial $initialConfig) | |
| getMethodInstance ($code) | |
| getMethodFormBlock (MethodInterface $method, LayoutInterface $layout) | |
| getInfoBlock (InfoInterface $info, LayoutInterface $layout=null) | |
| getInfoBlockHtml (InfoInterface $info, $storeId) | |
| getPaymentMethods () | |
| getPaymentMethodList ($sorted=true, $asLabelValue=false, $withGroups=false, $store=null) | |
| isZeroSubTotal ($store=null) | |
| getZeroSubTotalOrderStatus ($store=null) | |
| getZeroSubTotalPaymentAutomaticInvoice ($store=null) | |
Public Member Functions inherited from AbstractHelper | |
| __construct (Context $context) | |
| isModuleOutputEnabled ($moduleName=null) | |
Data Fields | |
| const | XML_PATH_PAYMENT_METHODS = 'payment' |
Protected Member Functions | |
| getMethodModelConfigName ($code) | |
Protected Member Functions inherited from AbstractHelper | |
| _getRequest () | |
| _getModuleName () | |
| _getUrl ($route, $params=[]) | |
Protected Attributes | |
| $_paymentConfig | |
| $_layout | |
| $_methodFactory | |
| $_appEmulation | |
| $_initialConfig | |
Protected Attributes inherited from AbstractHelper | |
| $_moduleName | |
| $_request | |
| $_moduleManager | |
| $_logger | |
| $_urlBuilder | |
| $_httpHeader | |
| $_eventManager | |
| $_remoteAddress | |
| $urlEncoder | |
| $urlDecoder | |
| $scopeConfig | |
| $_cacheConfig | |
| __construct | ( | \Magento\Framework\App\Helper\Context | $context, |
| LayoutFactory | $layoutFactory, | ||
| \Magento\Payment\Model\Method\Factory | $paymentMethodFactory, | ||
| \Magento\Store\Model\App\Emulation | $appEmulation, | ||
| \Magento\Payment\Model\Config | $paymentConfig, | ||
| \Magento\Framework\App\Config\Initial | $initialConfig | ||
| ) |
Construct
| \Magento\Framework\App\Helper\Context | $context | |
| LayoutFactory | $layoutFactory | |
| \Magento\Payment\Model\Method\Factory | $paymentMethodFactory | |
| \Magento\Store\Model\App\Emulation | $appEmulation | |
| \Magento\Payment\Model\Config | $paymentConfig | |
| \Magento\Framework\App\Config\Initial | $initialConfig |
| getInfoBlock | ( | InfoInterface | $info, |
| LayoutInterface | $layout = null |
||
| ) |
| getInfoBlockHtml | ( | InfoInterface | $info, |
| $storeId | |||
| ) |
Render payment information block
| InfoInterface | $info | |
| int | $storeId |
Definition at line 199 of file Data.php.
| getMethodFormBlock | ( | MethodInterface | $method, |
| LayoutInterface | $layout | ||
| ) |
| getMethodInstance | ( | $code | ) |
Retrieve method model object
| string | $code |
Definition at line 103 of file Data.php.
|
protected |
Retrieve all payment methods list as an array
Possible output: 1) assoc array as => <title> 2) array of array('label' => <title>, 'value' => ) 3) array of array( array('value' => , 'label' => <title>), array('value' => array( 'value' => array(array(<code1> => <title1>, <code2> =>...), 'label' => <group name>=""> )), array('value' => , 'label' => <title>), ... )
| bool | $sorted | |
| bool | $asLabelValue | |
| bool | $withGroups | |
| Store | null | $store |
Definition at line 255 of file Data.php.
| getPaymentMethods | ( | ) |
Retrieve all payment methods
Definition at line 226 of file Data.php.
| getZeroSubTotalOrderStatus | ( | $store = null | ) |
| getZeroSubTotalPaymentAutomaticInvoice | ( | $store = null | ) |
| isZeroSubTotal | ( | $store = null | ) |