Commit a9850a7
committed
feat: add dynamic card brand icons to credit card payment method
Display available card brand icons (Visa, Mastercard, etc.) in the payment
method title for both Classic and Blocks checkout, based on merchant's
enabled payment methods from MONEI API.
- Add CardBrandHelper service to fetch and format card brand configurations
- Fetch available card brands from MONEI API metadata.card.brands
- Copy 9 card brand SVG icons (8 brands + default) from Magento module
- Inject card brands into payment method label for Classic checkout
- Render card brands in CreditCardLabel component for Blocks checkout
- Automatically hide default logo when card brands are available
- Add CSS for horizontal icon layout with proper spacing
- Remove unused $profile_monitor property
- Fix PHPStan issues with ternary operators and null checks1 parent 2fce098 commit a9850a7
File tree
17 files changed
+916
-495
lines changed- assets
- css
- js
- components
- public/images/cards
- src
- Core
- Gateways
- Blocks
- PaymentMethods
- Helpers
- Services
17 files changed
+916
-495
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 4 | | |
8 | 5 | | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
10 | 19 | | |
11 | 20 | | |
12 | 21 | | |
| |||
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | | - | |
28 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
29 | 45 | | |
30 | 46 | | |
31 | 47 | | |
| |||
43 | 59 | | |
44 | 60 | | |
45 | 61 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
60 | | - | |
61 | 68 | | |
62 | | - | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
| |||
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
76 | 98 | | |
77 | 99 | | |
78 | 100 | | |
| |||
85 | 107 | | |
86 | 108 | | |
87 | 109 | | |
| 110 | + | |
88 | 111 | | |
89 | 112 | | |
90 | 113 | | |
| |||
113 | 136 | | |
114 | 137 | | |
115 | 138 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 139 | | |
121 | 140 | | |
122 | 141 | | |
| |||
0 commit comments