mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-29 06:38:45 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user