wilburx9 / flutter_paystack

:credit_card: A robust Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS
https://pub.dartlang.org/packages/flutter_paystack
Apache License 2.0
213 stars 392 forks source link

I can see only ONE bank in dropdown #143

Closed 10terabyte closed 1 year ago

10terabyte commented 1 year ago

image

10terabyte commented 1 year ago

I have checked this code in library. Future<List?> _fetchSupportedBanks() async { const url = 'https://api.paystack.co/bank?gateway=emandate&pay_with_bank=true'; try { http.Response response = await http.get(url.toUri()); Map<String, dynamic> body = json.decode(response.body); var data = body['data']; List banks = []; for (var bank in data) { banks.add(new Bank(bank['name'], bank['id'])); } return banks; } catch (e) {} return null; }

when I call this api: https://api.paystack.co/bank?gateway=emandate&pay_with_bank=true

i can get one bank only. So, I cannot show 4 banks by default in our app?