File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/QuoteGraphQl/Model/Resolver Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,13 @@ private function getPaymentMethodsData(CartInterface $cart): array
81
81
*/
82
82
if ((int )$ grandTotal === 0 && $ carrierCode === self ::FREE_SHIPPING_METHOD
83
83
&& $ paymentMethod ->getCode () === self ::FREE_PAYMENT_METHOD_CODE ) {
84
- $ paymentMethodsData [] = [
85
- 'title ' => $ paymentMethod ->getTitle (),
86
- 'code ' => $ paymentMethod ->getCode (),
84
+ return [
85
+ [
86
+ 'title ' => $ paymentMethod ->getTitle (),
87
+ 'code ' => $ paymentMethod ->getCode (),
88
+ ]
87
89
];
88
- } elseif ((int )$ grandTotal >= 0
89
- && $ carrierCode !== self ::FREE_SHIPPING_METHOD ) {
90
+ } elseif ((int )$ grandTotal >= 0 ) {
90
91
$ paymentMethodsData [] = [
91
92
'title ' => $ paymentMethod ->getTitle (),
92
93
'code ' => $ paymentMethod ->getCode (),
You can’t perform that action at this time.
0 commit comments