customize payment popup fee info for SWIFT

This commit is contained in:
jmacxx 2021-09-13 06:44:17 -05:00
parent c94c4b3fa4
commit 51eca30770
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B
2 changed files with 8 additions and 0 deletions

View File

@ -660,6 +660,9 @@ portfolio.pending.step2_buyer.refTextWarn=Important: when making the payment, le
# suppress inspection "TrailingSpacesInProperty"
portfolio.pending.step2_buyer.fees=If your bank charges you any fees to make the transfer, you are responsible for paying those fees.
# suppress inspection "TrailingSpacesInProperty"
portfolio.pending.step2_buyer.fees.swift=Make sure to use the SHA (shared fee model) to send the SWIFT payment. \
See more details at [HYPERLINK:https://bisq.wiki/SWIFT#Use_the_correct_fee_option].
# suppress inspection "TrailingSpacesInProperty"
portfolio.pending.step2_buyer.altcoin=Please transfer from your external {0} wallet\n{1} to the BTC seller.\n\n
# suppress inspection "TrailingSpacesInProperty"
portfolio.pending.step2_buyer.cash=Please go to a bank and pay {0} to the BTC seller.\n\n

View File

@ -82,6 +82,7 @@ import bisq.core.payment.payload.HalCashAccountPayload;
import bisq.core.payment.payload.MoneyGramAccountPayload;
import bisq.core.payment.payload.PaymentAccountPayload;
import bisq.core.payment.payload.PaymentMethod;
import bisq.core.payment.payload.SwiftAccountPayload;
import bisq.core.payment.payload.USPostalMoneyOrderAccountPayload;
import bisq.core.payment.payload.WesternUnionAccountPayload;
import bisq.core.trade.Trade;
@ -608,6 +609,10 @@ public class BuyerStep2View extends TradeStepView {
} else if (paymentAccountPayload instanceof CashByMailAccountPayload ||
paymentAccountPayload instanceof HalCashAccountPayload) {
message += Res.get("portfolio.pending.step2_buyer.pay", amount);
} else if (paymentAccountPayload instanceof SwiftAccountPayload) {
message += Res.get("portfolio.pending.step2_buyer.pay", amount) +
refTextWarn + "\n\n" +
Res.get("portfolio.pending.step2_buyer.fees.swift");
} else {
message += Res.get("portfolio.pending.step2_buyer.pay", amount) +
refTextWarn + "\n\n" +