Definition at line 29 of file IframeConfigProvider.php.
◆ __construct()
- Parameters
-
Repository | $assetRepo | |
RequestInterface | $request | |
UrlInterface | $urlBuilder | |
LoggerInterface | $logger | |
PaymentHelper | $paymentHelper | |
string | $methodCode | |
Definition at line 86 of file IframeConfigProvider.php.
99 $this->method = $paymentHelper->getMethodInstance(
$methodCode);
◆ getCardFieldsMap()
Get map of cc_code, cc_num, cc_expdate for gateway Returns json formatted string
- Returns
- string
Definition at line 158 of file IframeConfigProvider.php.
161 if ($this->method->isAvailable()) {
163 $keys = [
'cccvv',
'ccexpdate',
'ccnum'];
getMethodConfigData($fieldName)
◆ getCgiUrl()
◆ getConfig()
{Retrieve assoc array of checkout configuration
- Returns
- array
}
Implements ConfigProviderInterface.
Definition at line 105 of file IframeConfigProvider.php.
111 'dateDelim' => [$this->methodCode => $this->
getDateDelim()],
113 'source' => [$this->methodCode => $this->
getViewFileUrl(
'blank.html')],
115 'cgiUrl' => [$this->methodCode => $this->
getCgiUrl()],
getExpireDateYearLength()
getViewFileUrl($fileId, array $params=[])
const CHECKOUT_IDENTIFIER
◆ getDateDelim()
Get delimiter for date
- Returns
- string
Definition at line 129 of file IframeConfigProvider.php.
132 if ($this->method->isAvailable()) {
getMethodConfigData($fieldName)
◆ getExpireDateYearLength()
getExpireDateYearLength |
( |
| ) |
|
|
protected |
Returns Cc expire year length
- Returns
- int
Definition at line 147 of file IframeConfigProvider.php.
getMethodConfigData($fieldName)
const DEFAULT_YEAR_LENGTH
◆ getMethodConfigData()
getMethodConfigData |
( |
|
$fieldName | ) |
|
|
protected |
Retrieve config data value by field name
- Parameters
-
- Returns
- mixed
Definition at line 231 of file IframeConfigProvider.php.
233 if ($this->method instanceof TransparentInterface) {
234 return $this->method->getConfigInterface()->getValue($fieldName);
236 return $this->method->getConfigData($fieldName);
◆ getPlaceOrderUrl()
Retrieve place order url on front
- Returns
- string
Definition at line 193 of file IframeConfigProvider.php.
195 return $this->urlBuilder->getUrl(
198 '_secure' => $this->request->isSecure()
getMethodConfigData($fieldName)
◆ getSaveOrderUrl()
Retrieve save order url on front
- Returns
- string
Definition at line 208 of file IframeConfigProvider.php.
210 return $this->urlBuilder->getUrl(
'checkout/onepage/saveOrder', [
'_secure' => $this->request->isSecure()]);
◆ getViewFileUrl()
getViewFileUrl |
( |
|
$fileId, |
|
|
array |
$params = [] |
|
) |
| |
|
protected |
Retrieve url of a view file
- Parameters
-
string | $fileId | |
array | $params | |
- Returns
- string[]
Definition at line 177 of file IframeConfigProvider.php.
180 $params = array_merge([
'_secure' => $this->request->isSecure()],
$params);
181 return $this->assetRepo->getUrlWithParams($fileId,
$params);
182 }
catch (LocalizedException $e) {
183 $this->logger->critical($e);
184 return $this->urlBuilder->getUrl(
'', [
'_direct' =>
'core/index/notFound']);
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
◆ $assetRepo
◆ $logger
◆ $method
◆ $methodCode
◆ $request
◆ $urlBuilder
◆ CHECKOUT_IDENTIFIER
const CHECKOUT_IDENTIFIER = 'checkout_flow' |
◆ DEFAULT_YEAR_LENGTH
const DEFAULT_YEAR_LENGTH = 2 |
◆ TIMEOUT_TIME
const TIMEOUT_TIME = 30000 |
The documentation for this class was generated from the following file: