diff --git a/lib/screens/pay/pay_controller.dart b/lib/screens/pay/pay_controller.dart index 30339d8..c46d21d 100644 --- a/lib/screens/pay/pay_controller.dart +++ b/lib/screens/pay/pay_controller.dart @@ -185,8 +185,15 @@ class PayController extends ChangeNotifier { model.paymentProcessors = getFakePaymentProcessors(); notifyListeners(); + var labels = ['ECOCASH', 'MPGS']; + + prefs = await SharedPreferences.getInstance(); + if (prefs.get('token') != null) { + labels.add('WALLET'); + } + final response = await http.get( - '/public/payment-processors?currency=$currency', + '/public/payment-processors?currency=$currency&labelIn=${labels.join(',')}', ); final List content = response is List ? response