lib/pagarme/transaction.rb in pagarme-0.11 vs lib/pagarme/transaction.rb in pagarme-0.12

- old
+ new

@@ -127,10 +127,10 @@ "Invalid expiracy date month." elsif self.card_expiracy_year.to_i <= 0 "Invalid expiracy date year." elsif self.card_cvv.length < 3 || self.card_cvv.length > 4 "Invalid card security code." - elsif self.amount <= 0 + elsif self.amount.to_i <= 0 "Invalid amount." else nil end end