def locale_string_for_ip(ip)
      get "/#{ip}/pay/#{price_setting_id}/locale_for_ip" do |data|
        parts = data[:locale].split('-')
        Zaypay::Util.stringify_locale_hash({:country => parts[1], :language => parts[0]})
      end
    end
def locale_string_for_ip(ip)
      get "/#{ip}/pay/#{price_setting_id}/locale_for_ip" do |data|
        parts = data[:locale].split('-')
        Zaypay::Util.stringify_locale_hash({:country => parts[1], :language => parts[0]})
      end
    end
Returns the default locale as a string for a given ip_address, with the first part representing the language, the second part the country

 This method comes in handy when you want to preselect the language and country when your customer creates a payment on your website.

 = Example:
    # We take an ip-address from Great Britain for example:
    ip = "212.58.226.75"
    @price_setting.locale_string_for_ip(ip)
    => 'en-GB'

 Also see {#locale_for_ip}
 @param [String] ip an ip-address (e.g. from your site's visitors)
 @return [String] a string that represents the default locale for the given IP, in a language-country format.