【问题标题】:Android Pay not accepting non-US delivery addressAndroid Pay 不接受非美国收货地址
【发布时间】:2017-05-11 05:29:08
【问题描述】:
我正在使用带有 Stripe 的 Android Pay 作为支付处理器。不需要收货地址时一切正常(能够进行端到端付款)....但是当我设置setShippingAddressRequired()(创建MaskedWalletRequest时)时,Android Pay 不允许选择非美国收货地址.如果我点击“添加收货地址”,它会显示我的(非美国)地址列表,但它们是灰色的,下方显示“此处不支持”文本。
【问题讨论】:
标签:
stripe-payments
android-pay
【解决方案1】:
好的,原来我需要在创建MaskedWalletRequest时调用addAllowedCountrySpecificationsForShipping()....例如通过以下方式
ArrayList<CountrySpecification> allowedCountriesForShipping = new ArrayList<>();
allowedCountriesForShipping.add(new CountrySpecification("US"));
allowedCountriesForShipping.add(new CountrySpecification("IE"));
allowedCountriesForShipping.add(new CountrySpecification("DE"));