Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-paypal
Block
Adminhtml
Payflowpro
CcForm.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Block\Adminhtml\Payflowpro
;
7
8
use
Magento\Checkout\Model\Session
;
9
use
Magento\Framework\App\ObjectManager
;
10
use
Magento\Framework\View\Element\Template\Context
;
11
use
Magento\Payment\Helper\Data
;
12
use
Magento\Payment\Model\Config
;
13
use
Magento\Paypal\Model\Payflow\Transparent
;
14
use
Magento\Store\Model\StoreManagerInterface
;
15
use
Magento\Vault\Model\VaultPaymentInterface
;
16
17
class
CcForm
extends
\Magento\Payment\Block\Transparent\Form
18
{
22
protected
$_template
=
'Magento_Paypal::transparent/form.phtml'
;
23
27
private
$paymentDataHelper;
28
35
public
function
__construct
(
36
Context
$context,
37
Config
$paymentConfig,
38
Session
$checkoutSession,
39
array
$data
= []
40
) {
41
parent::__construct($context, $paymentConfig, $checkoutSession,
$data
);
42
}
43
48
public
function
isVaultEnabled
()
49
{
50
$storeId
= $this->_storeManager->getStore()->getId();
51
$vaultPayment = $this->getVaultPayment();
52
return
$vaultPayment->isActive(
$storeId
);
53
}
54
60
protected
function
shouldRender
()
61
{
62
return
true
;
63
}
64
68
protected
function
initializeMethod
()
69
{
70
return
;
71
}
72
77
private
function
getVaultPayment()
78
{
79
return
$this->getPaymentDataHelper()->getMethodInstance(
Transparent::CC_VAULT_CODE
);
80
}
81
87
private
function
getPaymentDataHelper()
88
{
89
if
($this->paymentDataHelper ===
null
) {
90
$this->paymentDataHelper =
ObjectManager::getInstance
()->get(Data::class);
91
}
92
return
$this->paymentDataHelper;
93
}
94
}
$storeId
$storeId
Definition:
customer_review_with_rating.php:14
Magento\Framework\App\ObjectManager\getInstance
static getInstance()
Definition:
ObjectManager.php:33
Magento\Vault\Model\VaultPaymentInterface
Definition:
VaultPaymentInterface.php:15
Magento\Checkout\Model\Session
Definition:
SuccessValidator.php:6
Magento\Paypal\Block\Adminhtml\Payflowpro\CcForm\initializeMethod
initializeMethod()
Definition:
CcForm.php:68
Magento\Framework\App\ObjectManager
Definition:
ConfigCache.php:8
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
Magento\Paypal\Block\Adminhtml\Payflowpro\CcForm\isVaultEnabled
isVaultEnabled()
Definition:
CcForm.php:48
Magento\Payment\Model\Config
Definition:
Config.php:20
Magento\Store\Model\StoreManagerInterface
Definition:
StoreManagerInterface.php:17
Magento\Payment\Model\Config
Definition:
ReaderTest.php:8
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Paypal\Block\Adminhtml\Payflowpro
Definition:
CcForm.php:6
Magento\Payment\Helper\Data
Definition:
Data.php:25
Magento\Paypal\Block\Adminhtml\Payflowpro\CcForm\__construct
__construct(Context $context, Config $paymentConfig, Session $checkoutSession, array $data=[])
Definition:
CcForm.php:35
Magento\Paypal\Block\Adminhtml\Payflowpro\CcForm\shouldRender
shouldRender()
Definition:
CcForm.php:60
Magento\Paypal\Block\Adminhtml\Payflowpro\CcForm
Definition:
CcForm.php:17
Magento\Paypal\Model\Payflow\Transparent
Definition:
Transparent.php:29
Magento\Checkout\Model\Session
Definition:
Session.php:17
Magento\Paypal\Model\Payflow\Transparent\CC_VAULT_CODE
const CC_VAULT_CODE
Definition:
Transparent.php:35
Magento\Paypal\Block\Adminhtml\Payflowpro\CcForm\$_template
$_template
Definition:
CcForm.php:22
Magento\Payment\Block\Transparent\Form
Definition:
Form.php:21