简体   繁体   English

国际验证不适用于 SmartyStreets 插件

[英]International validation is not working with SmartyStreets plugin

SmartyStreets Plugin SmartyStreets 插件

International Validation Woes国际验证问题

I have done everything the walk through requires:我已经完成了演练所需的一切:

  1. Included the Plugin包括插件

<script src="//d79i1fxsrar4t.cloudfront.net/jquery.liveaddress/3.1/jquery.liveaddress.min.js"></script>

  1. Configured Plugin Settings配置的插件设置

 var ss = jQuery.LiveAddress({ key: '******', waitForStreet: true, debug: true, target: "US|International", addresses: [{ address1: "#line1", address2: "#line2", locality: "#city", administrative_area: "#state", postal_code: "#zip", country: "#country" }] });
 <form> <input type="text" id="country" name="country" placeholder="country"><br> <input type="text" id="line1" name="line1" placeholder="line1"><br> <input type="text" id="line2" name="line2" placeholder="line2"><br> <input type="text" id="city" name="city" placeholder="city"><br> <input type="text" id="state" name="state" placeholder="state"><br> <input type="text" id="zip" name="ZIP" placeholder="ZIP"><br> </form>

Still however, validation will not work for other countries outside the US?但是,验证对美国以外的其他国家/地区不起作用吗?

After some time trying alternative configurations and still not having any luck, I contacted the Smartystreets.com support team.经过一段时间尝试替代配置但仍然没有任何运气,我联系了 Smartystreets.com 支持团队。 It turns out your account must be whitelisted in order for you to test out the International API.事实证明,您的帐户必须被列入白名单,以便您测试国际 API。

Currently, the only way to get permission to test out International API is to contact them directly.目前,获得测试国际 API 许可的唯一方法是直接与他们联系。 I used the chat on their site, but you can also email them at support@smartystreets.com .我在他们的网站上使用了聊天,但您也可以通过support@smartystreets.com向他们发送电子邮件。 Once you do, they will send you an email that you have to 'Agree to Terms' and reply back to.完成后,他们会向您发送一封电子邮件,您必须“同意条款”并回复。 Shortly after they will unlock International Validation for your account.不久之后,他们将为您的帐户解锁国际验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM