Displaying 4 results from an estimated 4 matches for "customer_ip".
Did you mean:
customer_id
2007 Oct 13
4
Chapter 9
...;m currently stunk on this issue for few days and I do not know how
to get it fixed.
The system always raises this error message :
order is closed
and here is my order.rb:
class Order < ActiveRecord::Base
include ActiveMerchant::Billing
before_validation :set_status
attr_protected :id, :customer_ip, :status, :error_message, :updated_at, :created_at
attr_accessor :card_type, :card_number, :card_expiration_month, :card_expiration_year, :card_verification_value
validates_size_of :order_items, :minimum => 1
validates_length_of :ship_to_first_name, :in => 2..255
validates_length_of :...
2007 May 30
9
Specify attr_protected
...es that need to be
protected. Rather than hand-writing a call to the ''it'' method for each
attribute, could I just loop over an array of attributes that need to
be checked and programatically define the ''it'' calls?
Pseudo-code:
describe Order do
[:total, :id, :customer_ip, :status, :error_message, :updated_at,
:created_at, :finalize, :tax, :shipping].each do |attribute|
it "should protect #{attribute} attributes from mass assignment" do
@order = Order.new(attribute => ''hax0rz'')
@order.attribute.should_not == ''h...
2009 Oct 07
1
output validations errors form causing type error?
...9;0.0'',9(18)>, qst: #<BigDecimal:
105d33ed8,''0.0'',9(18)>, shipping_ca: #<BigDecimal:105d33ac8,''0.0'',9(18)
>, shipping_us: #<BigDecimal:105bfb840,''0.7E1'',9(18)>, currency:
"USD", status: nil, comments: nil, customer_ip: "127.0.0.1",
payment_method: "Credit Card", downloaded: nil, express_token: nil,
express_payer_id: nil, card_type: "visa", card_expires_on:
"2009-10-01">>
If anyone has any idea where I can start looking to debug this error,
I would appreciated it ver...
2010 Mar 22
2
ActiveMerchant, Authorize.net and Email Receipts
...tomer_data(post, options)
if options.has_key? :email
post[:email] = options[:email]
post[:email_customer] = false
end
if options.has_key? :customer
post[:cust_id] = options[:customer]
end
if options.has_key? :ip
post[:customer_ip] = options[:ip]
end
end
...etc...
END RUBY
add_customer_data is called within purchase to process its options
hash. My question is in reference to the line that processes the email
key: Why on earth does it, after checking to see if the email entry
exists, set customer_email explici...