Skip to content

Commit fb1e4fc

Browse files
committed
MC-41603: Add new options to configure PayPal PayLater styles to System configuration
- Add extra colors from PayPal documentation
1 parent db064c0 commit fb1e4fc

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Framework\Data\OptionSourceInterface;
1111

1212
/**
13-
* Source model for PayLater banner color
13+
* Source model for PayLater flex banner color
1414
*/
1515
class Color implements OptionSourceInterface
1616
{
@@ -26,7 +26,9 @@ public function toOptionArray(): array
2626
['value' => 'black', 'label' => __('Black')],
2727
['value' => 'white', 'label' => __('White')],
2828
['value' => 'white-no-border', 'label' => __('White No Border')],
29-
['value' => 'gray', 'label' => __('Gray')]
29+
['value' => 'gray', 'label' => __('Gray')],
30+
['value' => 'monochrome', 'label' => __('Monochrome')],
31+
['value' => 'grayscale', 'label' => __('Grayscale')]
3032
];
3133
}
3234
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public function toOptionArray(): array
2323
{
2424
return [
2525
['value' => 'black', 'label' => __('Black')],
26-
['value' => 'white', 'label' => __('White')]
26+
['value' => 'white', 'label' => __('White')],
27+
['value' => 'monochrome', 'label' => __('Monochrome')],
28+
['value' => 'grayscale', 'label' => __('Grayscale')]
2729
];
2830
}
2931
}

app/code/Magento/Paypal/etc/adminhtml/system.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
<![CDATA[Display pay later messaging on your site for offers like Pay in 3,
161161
which lets customers pay with 3 interest- free monthly payments. We’ll show messages
162162
on your site to promote this feature for you. You may not promote pay later offers
163-
with any other content, marketing, or materials]]>
163+
with any other content, marketing, or materials.]]>
164164
</comment>
165165
</field>
166166
</group>
@@ -192,7 +192,7 @@
192192
<![CDATA[Display pay later messaging on your site for offers like Pay in 3, which
193193
lets customers pay with 3 interest- free monthly payments. We’ll show messages on
194194
your site to promote this feature for you. You may not promote pay later offers
195-
with any other content, marketing, or materials]]>
195+
with any other content, marketing, or materials.]]>
196196
</comment>
197197
</field>
198198
</group>
@@ -223,7 +223,7 @@
223223
<![CDATA[Display pay later messaging on your site for offers like Pay in 3,
224224
which lets customers pay with 3 interest- free monthly payments. We’ll show messages
225225
on your site to promote this feature for you. You may not promote pay later offers
226-
with any other content, marketing, or materials]]>
226+
with any other content, marketing, or materials.]]>
227227
</comment>
228228
</field>
229229
</group>
@@ -408,7 +408,7 @@
408408
(vente de biens numériques / de biens non physiques) ne sont pas éligibles pour
409409
promouvoir le Paiement en 4X PayPal. Nous afficherons des messages sur votre site
410410
pour promouvoir le Paiement en 4X PayPal. Vous ne pouvez pas promouvoir le Paiement
411-
en 4X PayPal avec un autre contenu, quel qu’il soit]]>
411+
en 4X PayPal avec un autre contenu, quel qu’il soit.]]>
412412
</comment>
413413
</field>
414414
</group>
@@ -429,7 +429,7 @@
429429
(vente de biens numériques / de biens non physiques) ne sont pas éligibles pour
430430
promouvoir le Paiement en 4X PayPal. Nous afficherons des messages sur votre site
431431
pour promouvoir le Paiement en 4X PayPal. Vous ne pouvez pas promouvoir le Paiement
432-
en 4X PayPal avec un autre contenu, quel qu’il soit]]>
432+
en 4X PayPal avec un autre contenu, quel qu’il soit.]]>
433433
</comment>
434434
</field>
435435
</group>
@@ -450,7 +450,7 @@
450450
(vente de biens numériques / de biens non physiques) ne sont pas éligibles pour
451451
promouvoir le Paiement en 4X PayPal. Nous afficherons des messages sur votre site
452452
pour promouvoir le Paiement en 4X PayPal. Vous ne pouvez pas promouvoir le Paiement
453-
en 4X PayPal avec un autre contenu, quel qu’il soit]]>
453+
en 4X PayPal avec un autre contenu, quel qu’il soit.]]>
454454
</comment>
455455
</field>
456456
</group>

app/code/Magento/Paypal/i18n/en_US.csv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,4 +758,6 @@ User,User
758758
"None","None"
759759
"Text","Text"
760760
"Flex","Flex"
761-
"Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest- free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials","Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest- free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials"
761+
"Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest- free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials.","Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest- free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials."
762+
"Monochrome","Monochrome"
763+
"Grayscale","Grayscale"

0 commit comments

Comments
 (0)