Skip to content

Commit 687342a

Browse files
committed
MAGETWO-57990: Implement Active Payments API
- Fix sort order
1 parent f434b0d commit 687342a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Payment/Model/PaymentMethodList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ function ($code) {
5454

5555
@uasort(
5656
$methodsInstances,
57-
function (MethodInterface $a, MethodInterface $b) {
58-
return (int)$a->getConfigData('sort_order') - (int)$b->getConfigData('sort_order');
57+
function (MethodInterface $a, MethodInterface $b) use ($storeId) {
58+
return (int)$a->getConfigData('sort_order', $storeId) - (int)$b->getConfigData('sort_order', $storeId);
5959
}
6060
);
6161

0 commit comments

Comments
 (0)