lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.112.0 vs lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.113.0
- old
+ new
@@ -163,11 +163,11 @@
# The first half of the preauth(authorize)/postauth(capture) model.
# Checks to make sure funds are available for a transaction, and returns a
# transaction_id that can be used later to postauthorize (capture) the funds.
def authorize(money, payment_source, options = {})
parameters = {
- transaction_amount: amount(money),
+ transaction_amount: amount(money)
}
add_payment_source(parameters, payment_source)
add_address(parameters, options)
add_optional_fields(parameters, options)
@@ -176,10 +176,10 @@
# A simple sale, capturing funds immediately.
# Execute authorization and capture in a single step.
def purchase(money, payment_source, options = {})
parameters = {
- transaction_amount: amount(money),
+ transaction_amount: amount(money)
}
add_payment_source(parameters, payment_source)
add_address(parameters, options)
add_optional_fields(parameters, options)