search for: credit_card_number

Displaying 5 results from an estimated 5 matches for "credit_card_number".

2006 Feb 02
6
How do I? Same Model, Different Controllers, Different Validations?
...Admin side is intended to be a bit more flexible than the customer-facing side. For example, we might take international orders by phone, but not over the Web. Or we might allow payment with PO/check/cash by an Admin-side order, but not from a Web order. If I set something like "validate :credit_card_number" in the Model, it will trigger on the Admin side, requiring a credit card, where I''d prefer to allow a blank credit card. How do I set per-Controller validation? Or, is there another, more idiomatic way to approach this altogether? -- Joshua
2009 Oct 31
1
Long pause during dialing to IVR
...and line. The first part D(wwwwwwwwwww1www) worked, but not the second one D(wwwwwwww005893884053811#) I'm trying to obtain credit card authorization number from Bank's IVR So dialing banks phone number, Press: 1 enter merchant: device #1 enter merchant: device #2 enter 1 enter 2 enter credit_card_number (most likely from external input file) enter enter expiry_date (from external input file) enter amount: manually. I'm sure somebody has written something like this before. -- Joseph
2006 Jan 20
47
SQL Server datetime error
i have a problem with the datetime format of rails. i am unable to save a dataset to the db. here''s the error message -- the original error message was in german, so i translated it -- i get: DBI::DatabaseError: Execute OLE error code:80040E07 in Microsoft OLE DB Provider for SQL Server Couldn''t convert a char-Datatype to datetime HRESULT error code:0x80020009
2007 Jun 21
2
expects with returns that returns the return value of the actual method
...turns, I''d like it to return the actual return value provided if you called the non mocked purchase method. Is this possible? def test_charge gateway = ActiveMerchant::Billing::Base.gateway(:bogus).new ActiveMerchant::Billing::Base.mode = :test member = Member.new member.credit_card_number = "1" member.expiration_date = "9/19/2007" member.payment_method = "bogus" member.first_name = "Steve" member.last_name = "Eichert" member.expects(:active_merchant_gateway).returns(gateway) # gateway.expects(:purchase).retur...
2007 Jun 21
3
only checking certain parameters for a method
...bout one of the parameters being sent to the method, does anyone think having a way to say that any value for a parameter which I don''t care about is valid? I''m thinking something like: def test_charge_is_for_10_bucks gateway = test_gateway member = Member.new member.credit_card_number = "1" member.expiration_date = "9/19/2007" member.payment_method = "bogus" member.first_name = "Steve" member.last_name = "Eichert" member.expects(:active_merchant_gateway).returns(gateway) member.expects(:purchase).with(1000...