lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.56.0 vs lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.57.0
- old
+ new
@@ -88,11 +88,11 @@
# amount - The monetary amount of the transaction in cents.
# authorization - The Clearhaus authorization id string.
# options - A standard ActiveMerchant options hash
def capture(amount, authorization, options={})
post = {}
- add_amount(post, amount, options)
+ add_invoice(post, amount, options)
commit("/authorizations/#{authorization}/captures", post)
end
# Refund a captured transaction (fully or partial).
@@ -143,10 +143,10 @@
private
def add_invoice(post, money, options)
add_amount(post, money, options)
post[:reference] = options[:order_id] if options[:order_id]
- post[:text_on_statement] = options[:description] if options[:description]
+ post[:text_on_statement] = options[:text_on_statement] if options[:text_on_statement]
end
def add_amount(post, amount, options)
post[:amount] = amount(amount)
post[:currency] = (options[:currency] || default_currency)