|
|
@ -362,19 +362,20 @@ public class RecipientEditV3Presenter extends RecipientAddEditBaseV3Presenter { |
|
|
|
view.showMobilePrefixAndFlag(gateway.getMobilePrefixFromCountryCode(validator.getRecipientDetail().getCountryCode()), CountryFlagMapper.getFlagFromCountryCode(validator.getRecipientDetail().getCountryCode())); |
|
|
|
view.showCountrySelectionView(true); |
|
|
|
view.showPaymentSelectionView(true); |
|
|
|
if (validator.getRecipientDetail().getPaymentMethod() == null) { |
|
|
|
//Since payment method is not available at the moment we cannot show his existing mapped data |
|
|
|
for (CountryServiceModel countryServiceModel : t.getData()) { |
|
|
|
if (countryServiceModel.getCountryCode().equalsIgnoreCase(validator.getRecipientDetail().getCountryCode())) { |
|
|
|
validator.updateSelectedCountry(countryServiceModel); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
for (CountryServiceModel countryServiceModel : t.getData()) { |
|
|
|
if (countryServiceModel.getCountryCode().equalsIgnoreCase(validator.getRecipientDetail().getCountryCode())) { |
|
|
|
validator.updateSelectedCountry(countryServiceModel); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (validator.getRecipientDetail().getPaymentMethod() != null) { |
|
|
|
|
|
|
|
} else { |
|
|
|
String countryId = validator.getRecipientDetail().getCountryId(); |
|
|
|
String serviceTypeID = validator.getRecipientDetail().getPaymentMethod().getId(); |
|
|
|
getDynamicValidationAndDropDownList(countryId, serviceTypeID); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|