fix: restore direct MoonPay purchases in Hash Bags 1.0.6

This commit is contained in:
jwinterm
2026-11-23 17:12:50 -05:00
committed by John Winter Murphy
parent 4c1426f8ab
commit 13a2908e8a
11 changed files with 116 additions and 168 deletions
+4 -1
View File
@@ -186,7 +186,7 @@ class MoonPayProvider extends BuyProvider {
final moonPayMethods = await fetchMoonPayPaymentMethods(
currencyCode: fiatCurrency,
transactionType: isBuyAction ? "buy" : "sell",
);
).timeout(const Duration(seconds: 5));
for (final method in moonPayMethods) {
if (!method.active) {
@@ -201,6 +201,9 @@ class MoonPayProvider extends BuyProvider {
}
} catch (e) {
printV("Error fetching payment methods: $e");
// The existing signer may not offer method lookup. Let MoonPay quote a
// purchase without a method filter and enforce availability in checkout.
return isBuyAction ? [PaymentMethod.all()] : [];
}
return paymentMethods;