similar to: Preventing Double Submit?

Displaying 20 results from an estimated 4000 matches similar to: "Preventing Double Submit?"

2009 Apr 01
3
Nil being coerced to float
I was doing this: @line_items = LineItems.find_all_by_invoice_id(params[:id]) @payments = Payments.find_all_by_invoice_id(params[:id]) @total = @line_items.sum{ |item| item.cost } @payment_total = @payments.sum{ |payment| payment.value } @balance = @total - @payment_total But when no payments had been made it was coming up with an error when trying to sum nil, so I did
2012 Dec 26
2
has value in a console but it's nil in my controller and my view?
I have this strange behavior and I don''t undertand why. Here is the thing: I have this record in my payment model: 1.9.3p286 :019 > u.payment.last Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."user_id" = 10 => [#<Payment id: 37, bank_name: "Mercantil", plan: "Plan Uno", date:
2009 Aug 31
3
How to deal with PayPal frauds?
I charge my customers through PayPal, but recently faced a fraud which previously had only heard about. Somebody registered a few accounts, paid online with paypal (as my service is only prepaid) and started making expensive long distance calls. In fact the IP registering the accounts was from Florida, and IPs making calls were from Africa. After about 20 minutes the first payment was reversed.
2006 Mar 27
1
polymorphism + inheritance
Hi, currently I do some work with polymorphic associations in egde rails class Order < ActiveRecord::Base belongs_to :payment, :polymorphic => true end class CreditCardPayment < Payment end class PayPalPayment < Payment end class Payment < ActiveRecord::Base has_one :order, :as => :payment # common stuff in here end I want to use [Payment] for common functionality
2006 May 09
1
$4529.72 spend received from blocked e-gold account #168571 - Please accept or refuse this payment
<p>Dear E-gold Customer, <br> <br> You have received a payment from <font color="#000000">blocked </font>e-gold account <font color="#000000" face="Courier New, Courier, mono">#168571</font> to the value of <font face="Courier New, Courier, mono">$4529.72</font>. Your current account security
2006 Jul 25
7
Paypal - Instant Payment Notifications
Has anyone any experience of getting the Paypal plug in to work? I''ve set myself up on the Paypal sandbox, I''ve setup my sending and receiving accounts, i''ve got the Paypal button on my view, I can go and make payments ok, but I can''t get the Instant Payment Notification part to work. At the end of the payment process the user is left in a paypal screen
2006 Oct 12
2
How do I test a unique index?
I have a loans table and a payments table. Each loan has_many payments. So far no problem. Now, the payments table has a payment_number field, and each payment has a payment_number unique within that loan. For example, Loan A can have payment_numbers 0, 1, and 2 and Loan B can have payment_numbers 0, 1, 2, and 3 (but only one of each payment_number). I can enforce this with a unique index in
2008 Jan 31
4
Subscriptions with paypal...how?
Hi, i''ve to do a little site which need the paypal''s subscription feature. How can implement it with rails? is there any plugin to do this? I need that every month the payment has been taken, tell the system that has been successfully done and then do something else depending on the payment. I''ve seen active merchant which permit paypal payments, but what about
2010 Oct 20
3
[JOBS] Integrating a payment gateway into my current website.
I am looking for a web developer to integrate a payment gateway into my current website. It currently has a shopping basket system but is not connected to a payments provider. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2009 Feb 05
2
Amazon Flexible Payment System - micropayments finally cracked?
First posted at: http://deancollinsblog.blogspot.com/2009/02/amazon-flexible-payment-syst em.html Amazon have just announced they are finally opening up their API's to their credit card processing platform https://payments-sandbox.amazon.com/sdui/sdui/business?sn=devfps/o So does this mean that micropayments have finally been cracked? It certainly helps out users because you can
2007 Aug 24
1
ActiveMerchant Paypal IPN and RESTful design
Hello, I''m trying to go all REST of my application. But i''ve come to one problem. How do i do payment, using IPN, in a RESTful way? right now i have an Payments controller. With 2 actions. action "new" shows a page with a paypal button. action "paypal_ipn" is where paypal sends its notifications. How would i go about doing this in a REST environment? Thank
2006 Nov 29
6
How do I create an array to represent an empty record?
Here''s something that''s a snap to do in desktop database management systems (like Paradox or Access) but I haven''t figured out how to do it in RoR, and can''t seem to find any examples by googling, etc. My overall goal is to create a temporary space in which to create and process a single new record (representating a payment transaction), and when I''m
2006 Jun 30
2
Subscription Payment Model
Ok, I''m new to the world of actually charging for software, and it''s taken me a full month to decide how to charge in a way that doesn''t make me sleep with difficulty at nights. :) If someone can look at this and verify I''m on the right track or give any hints/tips, I''d greatly appreciate it. Basically, I want each user to be able to apply
2006 Jul 05
2
get value from array.
hi, Im running the following sql statment which returns 1 result. pSql = "SELECT sum(amount) FROM payments WHERE expected_pay_date LIKE ''"+pWholeDate+"%'' AND invoice_id IS null " aResult = Payment.find_by_sql(pSql) how can I get the result of this? (when doing @aResult.inspect it
2006 Jun 05
7
Building a UK based e-commerce store in rails
I have built a few sites with Rails, however I have been approached by a company wanting an e-commerce / online shop built. I would love to build one in rails with the knoweledge I now have. I have the agile book and the pickaxe book they are my reference guide. However there is virtually nothing on creating real world e-commerce sites in rails. They will be selling to both businesses and the
2009 Feb 17
5
[Cucumber] Level of features / Feature dependent steps
Forgive the long post, just looking for input/advice/alternate opinions.. Like many I think that going through the exercise of framing user requests in Cucumber terms(Features, Scenarios..) really helps facilitate necessary conversations and avoid time wasted implementing the wrong thing(e.g. as a requirement/specification tool). However, I''m a bit confused when it comes to
2006 Apr 23
2
models and views
Greetings. I have an application which is used to track jobs and payments. The billables table contains columns "job_date", "amount" and "receipt" which indicate the date of the job, the amount due and whether or not payment has been received, respectively. In addition to tracking and manipulating individual jobs, the application is also used to generate aggregate
2008 Jan 19
1
Decimals are being converted to Bigdecimals!!!!!
Hi all, I''m working on a financial app, and have set up some columns in my tables as decimals with precision => 8 and scale => 2. My migration looks like: change_column :lineitems, :price, :decimal, :precision => 8, :scale => 2 change_column :payments, :amount, :decimal, :precision => 8, :scale => 2 I''ve run the migration and restarted the server. I
2006 Feb 07
21
Paypal and Rails
Hello everyone, I am looking for a way to pass off a simple payment to paypal using our own interface. I understand that this requires making full use of Paypal''s API since we won''t be using their shopping cart or anything. I found the article by Pranav Bihari on his site and in the Wiki on using SOAP4R and the paypal WSDL file to interface with paypal web services, but I
2006 May 31
1
find by sql
Hi I have the following code, which makes use of an sql statment to get the results required. However this just doesnt seem right for rails, as ive managed to develop the whole project without using any other pure sql. Is there a cleaner way of doing this, but gaining the same results. thanks scott #sql to find all invoices pSql = "SELECT DISTINCT invoices.id,