Class: ActiveMerchant::Billing::BeanstreamInteracGateway
- Includes:
- BeanstreamCore
- Defined in:
- lib/active_merchant/billing/gateways/beanstream_interac.rb
Constant Summary
Constants included from BeanstreamCore
ActiveMerchant::Billing::BeanstreamCore::AVS_CODES, ActiveMerchant::Billing::BeanstreamCore::CVD_CODES, ActiveMerchant::Billing::BeanstreamCore::PROFILE_OPERATIONS, ActiveMerchant::Billing::BeanstreamCore::SECURE_PROFILE_URL, ActiveMerchant::Billing::BeanstreamCore::SP_SERVICE_VERSION, ActiveMerchant::Billing::BeanstreamCore::TRANSACTIONS, ActiveMerchant::Billing::BeanstreamCore::URL
Constants inherited from Gateway
Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS
Instance Attribute Summary
Attributes inherited from Gateway
Class Method Summary collapse
-
.confirm(transaction) ⇒ Object
Confirm a transaction posted back from the bank to Beanstream.
Instance Method Summary collapse
-
#confirm(transaction) ⇒ Object
Confirm a transaction posted back from the bank to Beanstream.
- #purchase(money, options = {}) ⇒ Object
Methods included from BeanstreamCore
#capture, #credit, included, #initialize, #refund
Methods inherited from Gateway
#card_brand, card_brand, inherited, #initialize, supports?, #test?
Methods included from CreditCardFormatting
Class Method Details
.confirm(transaction) ⇒ Object
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.
20 21 22 23 |
# File 'lib/active_merchant/billing/gateways/beanstream_interac.rb', line 20 def self.confirm(transaction) gateway = new(:login => '') gateway.confirm(transaction) end |
Instance Method Details
#confirm(transaction) ⇒ Object
Confirm a transaction posted back from the bank to Beanstream.
36 37 38 |
# File 'lib/active_merchant/billing/gateways/beanstream_interac.rb', line 36 def confirm(transaction) post(transaction) end |
#purchase(money, options = {}) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/active_merchant/billing/gateways/beanstream_interac.rb', line 25 def purchase(money, = {}) post = {} add_amount(post, money) add_invoice(post, ) add_address(post, ) add_interac_details(post, ) add_transaction_type(post, :purchase) commit(post) end |