Skip to content

Commit a4d45e0

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

16 files changed

+513
-11
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
class Color
11+
{
12+
/**
13+
* PayLater colors source getter for Catalog Product Page
14+
*
15+
* @return array
16+
*/
17+
public function getColorsCPP(): array
18+
{
19+
return [
20+
'blue' => __('Blue'),
21+
'black' => __('Black'),
22+
'white' => __('White'),
23+
'white-no-border' => __('White No Border'),
24+
'gray' => __('Gray')
25+
];
26+
}
27+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
class LogoPosition
11+
{
12+
/**
13+
* PayLater logo positions source getter for Catalog Product Page
14+
*
15+
* @return array
16+
*/
17+
public function getLogoPositionsCPP(): array
18+
{
19+
return [
20+
'left' => __('Left'),
21+
'right' => __('Right'),
22+
'top' => __('Top')
23+
];
24+
}
25+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
class LogoType
11+
{
12+
/**
13+
* PayLater logo types source getter for Catalog Product Page
14+
*
15+
* @return array
16+
*/
17+
public function getLogoTypesCPP(): array
18+
{
19+
return [
20+
'primary' => __('Primary'),
21+
'alternative' => __('Alternative'),
22+
'inline' => __('Inline'),
23+
'none' => __('None')
24+
];
25+
}
26+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
class Position
11+
{
12+
/**
13+
* PayLater positions source getter for Catalog Product Page
14+
*
15+
* @return array
16+
*/
17+
public function getPositionsCPP(): array
18+
{
19+
return [
20+
'0' => __('Header (center)'),
21+
'1' => __('Near PayPal Credit checkout button')
22+
];
23+
}
24+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
class Ratio
11+
{
12+
/**
13+
* PayLater ratios source getter for Catalog Product Page
14+
*
15+
* @return array
16+
*/
17+
public function getRatiosCPP(): array
18+
{
19+
return [
20+
'1x1' => '1x1',
21+
'1x4' => '1x4',
22+
'8x1' => '8x1',
23+
'20x1' => '20x1'
24+
];
25+
}
26+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
class StyleLayout
11+
{
12+
/**
13+
* PayLater style layouts source getter for Catalog Product Page
14+
*
15+
* @return array
16+
*/
17+
public function getStyleLayoutsCPP(): array
18+
{
19+
return [
20+
'text' => __('Text'),
21+
'flex' => __('Flex')
22+
];
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
class TextColor
11+
{
12+
/**
13+
* PayLater text colors source getter for Catalog Product Page
14+
*
15+
* @return array
16+
*/
17+
public function getTextColorsCPP(): array
18+
{
19+
return [
20+
'black' => __('Black'),
21+
'white' => __('White')
22+
];
23+
}
24+
}

0 commit comments

Comments
 (0)