FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
allpay/ConfigProvider.php at master · mage2pro/allpay · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
mage2pro
/
allpay
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
4
Code
Issues
2
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
allpay
/
ConfigProvider.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (33 loc) · 1.22 KB
Breadcrumbs
allpay
/
ConfigProvider.php
Copy path
File metadata and controls
34 lines (33 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace
Dfe
\
AllPay
;
use
Df
\
Payment
\
ConfigProvider
\
IOptions
;
/**
* 2016-08-04
* @used-by https://github.com/mage2pro/allpay/blob/1.1.33/etc/frontend/di.xml?ts=4#L9
* @method Settings s()
* 2022-11-07 @noinspection PhpSuperClassIncompatibleWithInterfaceInspection It is a false positive.
*/
final
class
ConfigProvider
extends
\
Df
\
Payment
\ConfigProvider
implements
IOptions {
/**
* 2017-09-19
* We always need the allowed options on the frontend.
* If an option is intended to be chosen on the PSP side,
* then we just enumerate the allowed options on the Magento side.
* @override
* @see \Df\Payment\ConfigProvider\IOptions::options()
* @used-by \Df\Payment\ConfigProvider::configOptions()
* @return array(<value> => <label>)
*/
function
options
():
array
{
return
$
this
->
s
()->
options
()->
o
(
true
);}
/**
* 2016-08-04
* @override
* @see \Df\Payment\ConfigProvider::config()
* @used-by \Df\Payment\ConfigProvider::getConfig()
* @return array(string => mixed)
*/
protected
function
config
():
array
{
return
[
'
currencyRateFromBaseToCurrent
'
=>
df_currency_rate_to_current
()
,
'
installment
'
=> [
'
plans
'
=>
$
this
->
s
()->
installmentSales
()->
plans
()->
get
()]
] +
self
::
configOptions
(
$
this
) +
parent
::
config
();}
}
Back
|
FazBrowse Home
|
New Git URL