【问题标题】: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"));
    

    【讨论】:

      猜你喜欢
      • 2017-06-28
      • 2014-12-16
      • 1970-01-01
      • 1970-01-01
      • 2014-02-04
      • 2016-04-04
      • 1970-01-01
      • 1970-01-01
      • 2014-06-09
      相关资源
      最近更新 更多