Cw 1611 fetch moon pay payment methods from their api (#3565)

* add payment method api

* add payment method limits

* Update lib/buy/moonpay/moonpay_provider.dart

* fix MoonPay payment method handling

* Handle custom MoonPay payment methods

* fix limits when max is infinite [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
Serhii
2026-10-08 13:02:51 +02:00
committed by GitHub
co-authored by Omar Hatem
parent a5dc3a4add
commit 37ef179f6e
8 changed files with 319 additions and 235 deletions
+3 -1
View File
@@ -443,7 +443,9 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
for (var methods in result) {
for (var method in methods) {
final alreadyExists = tempPaymentMethods.any((m) {
return m.paymentMethodType == method.paymentMethodType;
if (m.paymentMethodType != method.paymentMethodType) return false;
if (method.paymentMethodType != PaymentType.unknown) return true;
return m.customTitle == method.customTitle;
});
if (!alreadyExists) {