Merge pull request #6777 from jmacxx/fix_issue_6661

Show AmazonGC country in offer book.
This commit is contained in:
Alejandro García 2023-07-25 16:37:58 +00:00 committed by GitHub
commit cbfc68b4dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,6 +247,9 @@ public class PaymentAccountUtil {
if (paymentAccount instanceof CountryBasedPaymentAccount) {
Country country = (((CountryBasedPaymentAccount) paymentAccount)).getCountry();
return country != null ? country.code : null;
} else if (paymentAccount instanceof AmazonGiftCardAccount) { // GH ISSUE #6661 show Amazon country
Country country = ((AmazonGiftCardAccount) paymentAccount).getCountry();
return country != null ? country.code : null;
}
return null;
}