mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-02-26 17:31:27 -05:00
WeChat Pay supports CNY, USD, EUR, and GBP
This commit is contained in:
parent
535b71adc5
commit
3847d1bd3a
@ -31,11 +31,15 @@ import java.util.List;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public final class WeChatPayAccount extends PaymentAccount {
|
||||
|
||||
public static final List<TradeCurrency> SUPPORTED_CURRENCIES = List.of(new TraditionalCurrency("CNY"));
|
||||
public static final List<TradeCurrency> SUPPORTED_CURRENCIES = List.of(
|
||||
new TraditionalCurrency("CNY"),
|
||||
new TraditionalCurrency("USD"),
|
||||
new TraditionalCurrency("EUR"),
|
||||
new TraditionalCurrency("GBP")
|
||||
);
|
||||
|
||||
public WeChatPayAccount() {
|
||||
super(PaymentMethod.WECHAT_PAY);
|
||||
setSingleTradeCurrency(SUPPORTED_CURRENCIES.get(0));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -26,6 +26,7 @@ import haveno.core.payment.payload.WeChatPayAccountPayload;
|
||||
import haveno.core.payment.validation.WeChatPayValidator;
|
||||
import haveno.core.util.coin.CoinFormatter;
|
||||
import haveno.core.util.validation.InputValidator;
|
||||
import javafx.collections.FXCollections;
|
||||
import javafx.scene.layout.GridPane;
|
||||
|
||||
import static haveno.desktop.util.FormBuilder.addCompactTopLabelTextFieldWithCopyIcon;
|
||||
@ -44,6 +45,12 @@ public class WeChatPayForm extends GeneralAccountNumberForm {
|
||||
this.weChatPayAccount = (WeChatPayAccount) paymentAccount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addTradeCurrency() {
|
||||
addTradeCurrencyComboBox();
|
||||
currencyComboBox.setItems(FXCollections.observableArrayList(weChatPayAccount.getSupportedCurrencies()));
|
||||
}
|
||||
|
||||
@Override
|
||||
void setAccountNumber(String newValue) {
|
||||
weChatPayAccount.setAccountNr(newValue);
|
||||
|
Loading…
x
Reference in New Issue
Block a user