search for: card_number

Displaying 13 results from an estimated 13 matches for "card_number".

2010 Aug 13
2
Rails 3 / ActiveModel for Credit Card information?
...rd Order class but I have not been able to get an ActiveModel to work as a nested object on a form. something like this.. on the order new form <%= form_for @order do |f| -%> . order stuff here.... <% f.fields_for :credit_card do |cc_fields| %> <%= cc_fields.label :card_number, ''*Number'' %> <%= cc_fields.text_field :card_number, :class => ''text'', :autocomplete => ''off'' %> <% end %> I have not found what magic I need to add to the order model to make this work. The <% f.fields...
2010 Dec 17
2
Log Filtering Sensitive Data
Hi, I know how to filter passwords, etc etc by using the below filter_parameter_logging :password But if i have params like the below so how do i filter them out. "order"=>{"card_number"=>"4111111111111160"} ive tried the following below but it doesnt seem to work filter_parameter_logging :card_number, :order_card_number, :order How do people do this already? I have searched google, message boards etc but cant seem to find a solution. JB -- Posted via http...
2007 Oct 13
4
Chapter 9
...stem 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 :ship_to_last_name, :in => 2..255 validates_length_of :ship_to_address, :in => 2..255...
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
...; false) %></p> ActiveRecord::MultiparameterAssignmentErrors in AccountController#signup_unlimited Parameters: {"user"=>{"company_name"=>"", "card_type"=>"Mastercard", "password_confirmation"=>"", "card_number"=>"", "card_expiration(1i)"=>"2008", "first_name"=>"", "card_expiration(2i)"=>"2", "last_name"=>"", "login"=>"", "password"=>"", "c...
2006 Jun 19
3
Using a records "id" in validation
...ror to the order object if the transaction is declined. The problem is that I do not have an id for the order until I save it, but I don;t want to save it until I know the authorization was successful. I don''t want to use an after_create hook beacuse I want to do an "errors.add :card_number" to prevent the saving and display a nice error to the user Any advice? heres my validation method so far: def validate_on_create # validate that the credit card authorization is successful auth = CreditCard.authorize(self, :card => card_number,...
2006 Feb 07
11
Possible Rails Security Issue?
...ay_cart"}): Processing StoreController#confirm_order (for xxx.xxx.xxx.xxx at 2006-02-06 09:39:32) [POST] Parameters: {"commit"=>" Continue ", "action"=>"confirm_order", "payment"=>{"card_type"=>"M", "card_number"=>"0000000000000000", "pay_type"=>"cc", "card_expiration(1i)"=>"2007", "card_expiration (2i)"=>"7"}, "controller"=>"store", "customer"=>{"company"=>"Xxxxx&...
2009 Oct 07
1
output validations errors form causing type error?
...and it seems normal to me, I don''t know why it cause errors in outputting errors to the view for this object. Here is the output of the inspect method: errors object #<ActiveRecord::Errors:0x105c343c0 @errors= {"customer_billing_state"=>["must be present"], "card_number"=>[["is not a valid credit card number"]], "customer_select_state"=>["^State/ Province must be a U.S. state selected from the drop down list for customers in United States"], "card_verifiation"=>[["is required"]]}, @base=#<Order id:...
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
...prefix=>"site_visit_helper[photosheet_records][#{i.to_s}][taken_on]", :include_blank=>true) %> </td> <td> <%= text_field_tag( "site_visit_helper[photosheet_records][#{i.to_s}][card_number]", pr.card_number) %> </td> <td> <%= text_field_tag( "site_visit_helper[photosheet_records][#{i.to_s}][first_photo_number]", pr.first_photo_number) %>...
2006 Jul 13
3
payment gem, server anomolies
so i have the payment gem working perfectly in our app, running locally on my system. uploaded a copy of the app file structure to our server (a rimu rhel3), but now the payment gem is unresponsive. it throws exceptions with no error message. i''m looking for a suggestion how to debug this. running updated gems and versions on both systems. they seem identical, unless i''m
2006 May 05
0
Authorize.net problem..
.../../config/../config/payment.yml", @city="Chicago", @first_name="Joe", @type="normal authorization", @expiration="1/2008", @required=[], @country="United States of America", @url="https://secure.authorize.net/gateway/transact.dll", @card_number="5424000000000015", @login="8888888888", @zip="43567", @address="13789 E. Elma", @relay_response="FALSE"> When I do a transaction.submit my transaction fails and when I try to do this: puts "ERROR: #{transaction.error_message}" I get...
2006 May 06
0
`connect'': undefined method `verify_mode'' for nil:NilClass
...rb: -------- require ''rubygems'' require ''payment/authorize_net'' transaction = Payment::AuthorizeNet.new( :login => ''username'', :password => ''password'', :amount => ''1'', :card_number => ''4007000000027'', :expiration => ''0310'', :first_name => ''John'', :last_name => ''Doe'' ) begin transaction.submit puts "Card processed successfully: #{transaction.authorization}&quo...
2004 Dec 13
0
Transfer and keep variables
Is there any way to transfer a call from host to host and keep the call's variables intact? -- specifically, UNIQUE_ID and user created variables like CARD_NUMBER, EXPIRATION_DATE, and CVV2? Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST Newline pagesteve@sedwards.com Fax: +1-760-731-3000
2007 Jan 27
0
Interchanging ActiveRecord and ActionWebService... Help with my problem and suggestions for Best Practices.
...servicePaymentApi < ActionWebService::API::Base require ''contract_payment'' api_method :make_credit_card_payment, :expects => [{:contract_id => :int}, {:amount => :float}, {:card_type => :string}, {:card_number => :string}, {:card_verification_code => :string}, {:card_expiration_date => :date} ], :returns => [:string] def make_payment(contract_payment) puts contract_payment.inspect end end class TestController < Applica...