lib/paypal-subscribe.rb
# INTERNAL - Builds the form config hash
# 
# Returns a hash with all config options.
Builds the form config hash
Returns a hash with all config options.
Builds the form config hash Returns a hash with all config options .
def paypal_config
    exceptionals = {:success_callback => :return, 
                    :failure_callback => :cancel_return,
                    :notify_callback  => :notify_url}
    self.class_variables.each do |c_var|
      key = c_var.to_s.gsub("@@","").to_sym
      unless key.eql?(:paypal_config_hash)
        if exceptionals.keys.include?(key)
          key = exceptionals[key]
        end
        @@paypal_config_hash[key] = self.class_variable_get(c_var)
      end
    end
    return @@paypal_config_hash
  end
def paypal_config exceptionals = { :success_callback => :return , :failure_callback => :cancel_return , :notify_callback => :notify_url } self . class_variables . each do | c_var | key = c_var . to_s . gsub ( "@@" , "" ) . to_sym unless key . eql? ( :paypal_config_hash ) if exceptionals . keys . include? ( key ) key = exceptionals [ key ] end @@paypal_config_hash [ key ] = self . class_variable_get ( c_var ) end end return @@paypal_config_hash end
INTERNAL - Builds the form config hash
Returns a hash with all config options.
INTERNAL - Builds the form config hash Returns a hash with all config options .