mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-16 09:34:06 +01:00
prevent calling unsupported payment method (#1836)
This commit is contained in:
@@ -145,7 +145,7 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||
|
||||
if (paymentType != null && paymentType != PaymentType.all) {
|
||||
paymentMethod = normalizePaymentMethod(paymentType);
|
||||
if (paymentMethod == null) paymentMethod = paymentType.name;
|
||||
if (paymentMethod == null) return null;
|
||||
}
|
||||
|
||||
final action = isBuyAction ? 'buy' : 'sell';
|
||||
@@ -185,6 +185,7 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Supported payment methods:
|
||||
// ● buying_power
|
||||
// ● crypto_balance
|
||||
// ● debit_card
|
||||
|
||||
Reference in New Issue
Block a user