lib/active_merchant/billing/integrations/nochex/notification.rb in tomriley-active_merchant-1.4.2.3 vs lib/active_merchant/billing/integrations/nochex/notification.rb in tomriley-active_merchant-1.4.2.4
- old
+ new
@@ -46,10 +46,10 @@
params['security_key']
end
# the money amount we received in X.2 decimal.
def gross
- params['amount']
+ sprintf("%.2f", params['amount'].to_f)
end
# Was this a test transaction?
def test?
params['status'] == 'test'