I am working on angular 7 app. I have integrated SqPaymentForm form but I have not found to hide the postal code SqPaymentForm form.
Please tell me how to hide this?
To answer your question, you just need to set postalCode: false within the SqPaymentForm initializer. See example in our code cookbook on removing postal code requirement. This will remove the postal code requirement, but of course you need to actually remove the div field that you created to hold the postal code (or hide it if you plan on supporting both countries that do and do not need postal codes).
I'll also add a warning from Square's docs:
Postal code is a required payment field for processing credit cards issued in the United States (US), Canada (CA), and United Kingdom (GB). Disabling postalCode in those regions will result in all credit card transactions being declined.
Related
I am new to Highmaps and am playing with it.
I notice that it uses the following data for a county in Maryland, USA.
Object { key="us-md-025", value=23}]
I am curious about "025". What is it called?
This code is called the "fips" or "county fips" code. It is a unique identifier for that particular county in the state you look at. Here is a good intro:
https://en.wikipedia.org/wiki/FIPS_county_code
A full county code looks like 23025 where the first two characters are the state fips code and the last three are the county fips code. Depending on the data set you are looking at you can also view the areatype code (for things like Metro Area, County, State, US Region, etc).
Full list of county fips codes can be found here:
http://www.census.gov/2010census/xls/fips_codes_website.xls
Map documentation can be found at...
http://www.highcharts.com/docs/maps/map-collection
Map data can be found at...
http://code.highcharts.com/mapdata/
If you scroll down to "USA States" > "Maryland, admin2" > "GeoJSON" link, you can open/download the map data for Maryland. Search the JSON data for "us-md-025". You will find "name":"Harford".
I am a signup form which has bunch of text fields like name, phone, address 1st line, city, state etc.
Can I use googles's Place Autocomplete on this form in such a way that when I start typing address 1st line in one of the fields it suggests/auto completes and fills the city and state
1st question, is it possible, if yes are there any examples or tutorials?
There are examples out there but they use autocomplete UI, I want to be able to use my own edit text fields.
So Yes I was able to do exactly what I wanted.
I had two dependencies for this.
1. AutoComplete Text Field
2. Google's Place AutoComplete
I have a YouTube channel. Within that channel I have a channelSection called "Brazil".
I want to limit that section so that only people in Brazil can view it.
In the documentation I see how to set the country parameter for a channel, but not a channelSection.
Per documentation: https://developers.google.com/youtube/v3/docs/channelSections/update
The only items I can update are:
snippet.type
snippet.style
snippet.title
snippet.position
contentDetails.playlists[]
contentDetails.channels[]
targeting.countries[]
targeting.languages[]
targeting.regions[]
Our YouTube rep wrote to us that "To set the snippet.country property for a channel resource, you actually need to update the brandingSettings.channel.country property. This setting does not affect targeting in any way."
So I am a bit confused. Do I set the channel's brandingSettings.channel.country setting to Brazil or the channelSection, and if so, how?
Update
Following the answer below, I receive the following error:
"domain": "global", "reason": "backendError", "message": "Backend Error"
I think they might've been confused about what you were trying to do. Changing the brandingSettings.channel property should only set
the country with which the channel is associated. [source]
I believe the correct way to do what you're asking is by adding "Brazil" to the targeting.regions[] list.
From the documentation:
targeting.countries[]: A list of ISO 3166-1 alpha-2 country codes
where the channel section is visible. [source]
Since you've already created the channelSection, you'd just use channelSections.update() to provide a channelSection resource and specify Brazil for the targeting country. According to the ISO 3166-1 country code list, the code for Brazil is "BR". Note that if you are submitting an update request and your request does not specify a value for a property that already has a value, the property's existing value will be deleted.
Afterwards, you can use channelSections.list() to check your channelSection resource and see that it should only be visible to users in Brazil (targeting.countries[] should have "BR" as the only value). Or maybe you could use some proxy extension to view the channel section from different countries to see if it's working as expected.
I want to find Country locations in AdWords API v201109 by country code, as it was possible in previous version of the API. However, in official documentation I can't find a way how to do that.
I can search by LocationName and entering country code. It works for some country codes ("CZ" - Czech Republic), but for some it doesn't ("SK" - Slovakia) - I suspect it doesn't work for most of country codes.
Of course, there's an obvious workaround: fetch Countries appendix and translate country codes to country names or ids locally. But I'd rather just search by country code directly. Is it possible?
Currently it is not possible to search countries by country_code only in AdWords API v201109. They havn't given feature for search with country code only. You are good hacky method.
They might develop later that for the same. Keep you code extend-able.
We recently published a CSV files that contains all the targetable locations, with a column for country code:
https://developers.google.com/adwords/api/docs/appendix/geotargeting
I want to store the exact country name using g:countrySelect. Example Germany instead of DEU. It is the value in the drop down menu. The drop down text is Germany but when it saves it to the database it changes back to the country code. Sorry if I am somewhat naive but I have been searching for almost 3 hours for solutions and it isn't well documented at the grails website. I could opt for any alternative even ajax. Just to have an easy way to display a list of countries and will be able to store the REAL NAME of the country NOT country code. Thank you!
You can convert from an ISO3 country code to the country name using this function
def getCountryName(String countryCode) {
Locale.availableLocales.find{it.ISO3Country == countryCode}.displayCountry
}
// Test
println getCountryName('DEU') // prints 'Germany'
If you want to do this within a GSP, it would be best to make this available as a TagLib.
Not sure when the above solution stopped working but if you try that now, you'll get an error:
Couldn't find 3-letter country code for CS
With the latest grail version, the current way of getting the full country name is by using this tag:
<g:country code="${country}"/>
I know this thread is old, but I was looking for the same issue and I had to share my solution.
You can use the CountryTagLib object to convert the ISO3 code back to full country name like this :
def country = CountryTagLib.ISO3166_3[code]
The "code" property being the ISO3 code that you got from <g:countrySelect>.