Confirm a transaction posted back from the bank to Beanstream. Confirming a transaction does not require any credentials, and in an application with many merchants sharing a funded URL the application may not yet know which merchant the post back is for until the response of the confirmation is received, which contains the order number.
# File lib/active_merchant/billing/gateways/beanstream_interac.rb, line 20 20: def self.confirm(transaction) 21: gateway = new(:login => '') 22: gateway.confirm(transaction) 23: end
Confirm a transaction posted back from the bank to Beanstream.
# File lib/active_merchant/billing/gateways/beanstream_interac.rb, line 36 36: def confirm(transaction) 37: post(transaction) 38: end
# File lib/active_merchant/billing/gateways/beanstream_interac.rb, line 25 25: def purchase(money, options = {}) 26: post = {} 27: add_amount(post, money) 28: add_invoice(post, options) 29: add_address(post, options) 30: add_interac_details(post, options) 31: add_transaction_type(post, :purchase) 32: commit(post) 33: end
# File lib/active_merchant/billing/gateways/beanstream_interac.rb, line 42 42: def add_interac_details(post, options) 43: address = options[:billing_address] || options[:address] || {} 44: post[:trnCardOwner] = address[:name] 45: post[:paymentMethod] = 'IO' 46: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.