Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor fix to ensure amount is always an integer

  • Loading branch information...
commit 7f696e6856f87e2feb7f4121a5493e8f11e8311f 1 parent 759bb8f
@samlown samlown authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/active_merchant/billing/integrations/sermepa/helper.rb
View
2  lib/active_merchant/billing/integrations/sermepa/helper.rb
@@ -86,7 +86,7 @@ def amount=(money)
if money.is_a?(String) || cents.to_i <= 0
raise ArgumentError, 'money amount must be either a Money object or a positive integer in cents.'
end
- add_field mappings[:amount], cents
+ add_field mappings[:amount], cents.to_i
end
def order=(order_id)
Please sign in to comment.
Something went wrong with that request. Please try again.