usability fixes
This commit is contained in:
@@ -144,13 +144,17 @@ class ProviderController extends ChangeNotifier {
|
||||
|
||||
// ── Payment Processors ─────────────────────────────────────
|
||||
|
||||
Future<ApiResponse<List<PaymentProcessor>>> loadProcessors() async {
|
||||
Future<ApiResponse<List<PaymentProcessor>>> loadProcessors(
|
||||
String currency,
|
||||
) async {
|
||||
model.isLoadingProcessors = true;
|
||||
model.errorMessage = null;
|
||||
if (!_disposed) notifyListeners();
|
||||
|
||||
try {
|
||||
final raw = await http.get('/public/payment-processors');
|
||||
final raw = await http.get(
|
||||
'/public/payment-processors?currency=$currency',
|
||||
);
|
||||
final response = _unwrap(raw);
|
||||
final List<dynamic> list = response is List
|
||||
? response
|
||||
|
||||
Reference in New Issue
Block a user