mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-25 11:03:55 +01:00
fix: restore direct MoonPay purchases in Hash Bags 1.0.6
This commit is contained in:
committed by
John Winter Murphy
parent
4c1426f8ab
commit
13a2908e8a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user