lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.96.0 vs lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.97.0
- old
+ new
@@ -46,9 +46,14 @@
def void(authorization, options={})
commit(:delete, "preauthorizations/#{preauth(authorization)}")
end
def store(credit_card, options={})
+ # The store request requires a currency and amount of at least $1 USD.
+ # This is used for an authorization that is handled internally by Paymill.
+ options[:currency] = 'USD'
+ options[:money] = 100
+
save_card(credit_card, options)
end
def supports_scrubbing
true