Skip to content

Commit 0604a78

Browse files
MC-41603: Add new options to configure PayPal PayLater styles to System configuration
1 parent a4d45e0 commit 0604a78

File tree

7 files changed

+23
-2
lines changed

7 files changed

+23
-2
lines changed

app/code/Magento/Paypal/Model/System/Config/Source/PayLater/Color.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
99

10+
/**
11+
* Source model for PayLater banner color
12+
*/
1013
class Color
1114
{
1215
/**

app/code/Magento/Paypal/Model/System/Config/Source/PayLater/LogoPosition.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
99

10+
/**
11+
* Source model for PayLater banner logo position
12+
*/
1013
class LogoPosition
1114
{
1215
/**

app/code/Magento/Paypal/Model/System/Config/Source/PayLater/LogoType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
99

10+
/**
11+
* Source model for PayLater banner logo type
12+
*/
1013
class LogoType
1114
{
1215
/**

app/code/Magento/Paypal/Model/System/Config/Source/PayLater/Position.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
99

10+
/**
11+
* Source model for PayLater banner position
12+
*/
1013
class Position
1114
{
1215
/**
@@ -17,8 +20,8 @@ class Position
1720
public function getPositionsCPP(): array
1821
{
1922
return [
20-
'0' => __('Header (center)'),
21-
'1' => __('Near PayPal Credit checkout button')
23+
'header' => __('Header (center)'),
24+
'sidebar' => __('Near PayPal Credit checkout button')
2225
];
2326
}
2427
}

app/code/Magento/Paypal/Model/System/Config/Source/PayLater/Ratio.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
99

10+
/**
11+
* Source model for PayLater banner ratio
12+
*/
1013
class Ratio
1114
{
1215
/**

app/code/Magento/Paypal/Model/System/Config/Source/PayLater/StyleLayout.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
99

10+
/**
11+
* Source model for PayLater banner style layout
12+
*/
1013
class StyleLayout
1114
{
1215
/**

app/code/Magento/Paypal/Model/System/Config/Source/PayLater/TextColor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
99

10+
/**
11+
* Source model for PayLater banner text color
12+
*/
1013
class TextColor
1114
{
1215
/**

0 commit comments

Comments
 (0)