Permalink
Browse files

Added support for authorization for payflow link transactions.

  • Loading branch information...
1 parent bf3291f commit 9975e1861943f8f41303e71ce9d5d1931822bcf2 Dennis O'Connor committed Feb 23, 2012
@@ -14,7 +14,7 @@ class Helper #:nodoc:
self.application_id = 'ActiveMerchant'
def initialize(order, account, options = {})
- options.assert_valid_keys([:amount, :currency, :test, :credential2, :credential3, :credential4, :country, :account_name])
+ options.assert_valid_keys([:amount, :currency, :test, :credential2, :credential3, :credential4, :country, :account_name, :authorize_only])
@fields = {}
@test = options[:test]
self.order = order
@@ -13,7 +13,7 @@ def initialize(order, account, options = {})
add_field('invoice', order)
add_field('vendor', account)
add_field('user', options[:credential4] || account)
- add_field('trxtype', 'S')
+ add_field('trxtype', options[:authorize_only] ? 'A' : 'S')
end
mapping :account, 'login'

0 comments on commit 9975e18

Please sign in to comment.