Stripe payments Android Pay不接受非美国送货地址

Stripe payments Android Pay不接受非美国送货地址,stripe-payments,android-pay,Stripe Payments,Android Pay,我使用Android Pay with Stripe作为支付处理器。当不需要送货地址时,一切正常(我可以进行端到端付款)…但是当我设置setShippingAddressRequired()(创建MaskedWalletRequest)时,Android Pay不允许选择非美国送货地址。如果我点击“添加送货地址”,它会显示我的(非美国)地址列表,但下面显示的“此处不受支持”文本会将其变灰。确定,结果是我需要在创建MaskedWalletRequest时调用addAllowedCountrySpe

我使用Android Pay with Stripe作为支付处理器。当不需要送货地址时,一切正常(我可以进行端到端付款)…但是当我设置
setShippingAddressRequired()
(创建
MaskedWalletRequest
)时,Android Pay不允许选择非美国送货地址。如果我点击“添加送货地址”,它会显示我的(非美国)地址列表,但下面显示的“此处不受支持”文本会将其变灰。

确定,结果是我需要在创建
MaskedWalletRequest
时调用
addAllowedCountrySpecificationsForShipping()
…例如传递以下内容

    ArrayList<CountrySpecification> allowedCountriesForShipping = new ArrayList<>();
    allowedCountriesForShipping.add(new CountrySpecification("US"));
    allowedCountriesForShipping.add(new CountrySpecification("IE"));
    allowedCountriesForShipping.add(new CountrySpecification("DE"));
ArrayList allowedCountriesForShipping=new ArrayList();
允许装运的国家。添加(新国家规格(“美国”);
允许装运的国家。添加(新国家规范(“IE”);
允许装运的国家。添加(新国家规范(“DE”);