File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
view/frontend/web/js/view Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Paylater extends Template
19
19
/**
20
20
* @var \Magento\Paypal\Model\Config
21
21
*/
22
- protected $ _paypalConfig ;
22
+ private $ paypalConfig ;
23
23
24
24
/**
25
25
* @param Template\Context $context
@@ -32,7 +32,7 @@ public function __construct(
32
32
array $ data = []
33
33
)
34
34
{
35
- $ this ->_paypalConfig = $ paypalConfig ;
35
+ $ this ->paypalConfig = $ paypalConfig ;
36
36
parent ::__construct ($ context , $ data );
37
37
}
38
38
Original file line number Diff line number Diff line change @@ -13,14 +13,16 @@ define([
13
13
paypalSdk
14
14
) {
15
15
'use strict' ;
16
+
16
17
return Component . extend ( {
18
+
17
19
defaults : {
18
20
template : 'Magento_Paypal/paylater' ,
19
- sdkUrl : "" ,
21
+ sdkUrl : '' ,
20
22
attributes : {
21
23
'data-pp-amount' : '' ,
22
24
'data-pp-style-logo-position' : 'right'
23
- } ,
25
+ }
24
26
} ,
25
27
26
28
/**
@@ -31,27 +33,28 @@ define([
31
33
initialize : function ( ) {
32
34
this . _super ( ) ;
33
35
this . loadPayPalSdk ( this . sdkUrl ) ;
36
+
34
37
return this ;
35
38
} ,
36
39
37
40
/**
38
41
* Get attribute value from configuration
39
42
*
40
- * @param attributeName
43
+ * @param { String } attributeName
41
44
* @returns {*|null }
42
45
*/
43
46
getAttribute : function ( attributeName ) {
44
- return typeof ( this . attributes [ attributeName ] ) !== 'undefined' ?
47
+ return typeof this . attributes [ attributeName ] !== 'undefined' ?
45
48
this . attributes [ attributeName ] : null ;
46
49
} ,
47
50
48
51
/**
49
52
* Load PP SDK with preconfigured options
50
53
*
51
- * @param sdkUrl
54
+ * @param { String } sdkUrl
52
55
*/
53
56
loadPayPalSdk : function ( sdkUrl ) {
54
57
paypalSdk ( sdkUrl ) ;
55
- } ,
58
+ }
56
59
} ) ;
57
60
} ) ;
You can’t perform that action at this time.
0 commit comments