def locale=(arg)
      case arg
      when Hash
        if arg.has_key?(:language) && arg.has_key?(:country)
          @locale = Zaypay::Util.stringify_locale_hash(arg)
        else
          raise Zaypay::Error.new(:locale_not_set, "The hash you provided was invalid. Please make sure it contains the keys :language and :country")
        end
      when String
        @locale = arg
      end
    end
def locale=(arg)
      case arg
      when Hash
        if arg.has_key?(:language) && arg.has_key?(:country)
          @locale = Zaypay::Util.stringify_locale_hash(arg)
        else
          raise Zaypay::Error.new(:locale_not_set, "The hash you provided was invalid. Please make sure it contains the keys :language and :country")
        end
      when String
        @locale = arg
      end
    end
Creates instances of Zaypay::PriceSetting.

 To instantiate, one must provide a PriceSetting-id and its API-Key.
 You can obtain these information once you have created a PriceSetting on the Zaypay platform (http://www.zaypay.com).

 You can also call the "one-arg" or the "no-args" version of the initializer,
 but to do that, you must first create config/zaypay.yml in your Rails app, see the {file:/README.rdoc README} file.

 @param [Integer] price_setting_id your PriceSetting's id
 @param [String] api_key your PriceSetting's api-key