@@ -162,7 +162,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
162
162
private final HashMap <String , Boolean > paymentAccountWarningDisplayed = new HashMap <>();
163
163
private boolean offerDetailsWindowDisplayed , zelleWarningDisplayed , fasterPaymentsWarningDisplayed ,
164
164
takeOfferFromUnsignedAccountWarningDisplayed , payByMailWarningDisplayed , cashAtAtmWarningDisplayed ,
165
- australiaPayidWarningDisplayed , paypalWarningDisplayed , cashAppWarningDisplayed ;
165
+ australiaPayidWarningDisplayed , paypalWarningDisplayed , cashAppWarningDisplayed , F2FWarningDisplayed ;
166
166
private SimpleBooleanProperty errorPopupDisplayed ;
167
167
private ChangeListener <Boolean > amountFocusedListener , getShowWalletFundedNotificationListener ;
168
168
@@ -276,6 +276,7 @@ protected void activate() {
276
276
maybeShowAustraliaPayidWarning (lastPaymentAccount , model .dataModel .getOffer ());
277
277
maybeShowPayPalWarning (lastPaymentAccount , model .dataModel .getOffer ());
278
278
maybeShowCashAppWarning (lastPaymentAccount , model .dataModel .getOffer ());
279
+ maybeShowF2FWarning (lastPaymentAccount , model .dataModel .getOffer ());
279
280
280
281
if (!model .isRange ()) {
281
282
nextButton .setVisible (false );
@@ -1235,6 +1236,23 @@ private void maybeShowCashAppWarning(PaymentAccount paymentAccount, Offer offer)
1235
1236
}
1236
1237
}
1237
1238
1239
+ private void maybeShowF2FWarning (PaymentAccount paymentAccount , Offer offer ) {
1240
+ if (paymentAccount .getPaymentMethod ().getId ().equals (PaymentMethod .F2F_ID ) &&
1241
+ !F2FWarningDisplayed && !offer .getExtraInfo ().isEmpty ()) {
1242
+ F2FWarningDisplayed = true ;
1243
+ UserThread .runAfter (() -> {
1244
+ new GenericMessageWindow ()
1245
+ .preamble (Res .get ("payment.tradingRestrictions" ))
1246
+ .instruction (offer .getExtraInfo ())
1247
+ .actionButtonText (Res .get ("shared.iConfirm" ))
1248
+ .closeButtonText (Res .get ("shared.close" ))
1249
+ .width (Layout .INITIAL_WINDOW_WIDTH )
1250
+ .onClose (() -> close (false ))
1251
+ .show ();
1252
+ }, 500 , TimeUnit .MILLISECONDS );
1253
+ }
1254
+ }
1255
+
1238
1256
private Tuple2 <Label , VBox > getTradeInputBox (HBox amountValueBox , String promptText ) {
1239
1257
Label descriptionLabel = new AutoTooltipLabel (promptText );
1240
1258
descriptionLabel .setId ("input-description-label" );
0 commit comments