Class: ActiveMerchant::Billing::SageBankcardGateway
- Includes:
- SageCore
- Defined in:
- lib/active_merchant/billing/gateways/sage/sage_bankcard.rb
Overview
:nodoc:
Constant Summary
Constants included from SageCore
ActiveMerchant::Billing::SageCore::TRANSACTIONS
Constants inherited from Gateway
Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS, Gateway::RECURRING_DEPRECATION_MESSAGE, Gateway::STANDARD_ERROR_CODE
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary collapse
- #authorize(money, credit_card, options = {}) ⇒ Object
-
#capture(money, reference, options = {}) ⇒ Object
The
money
amount is not used. - #credit(money, credit_card, options = {}) ⇒ Object
- #purchase(money, credit_card, options = {}) ⇒ Object
- #refund(money, reference, options = {}) ⇒ Object
- #void(reference, options = {}) ⇒ Object
Methods included from SageCore
Methods inherited from Gateway
#card_brand, card_brand, #generate_unique_id, inherited, #initialize, non_fractional_currency?, #scrub, supported_countries, #supported_countries, supported_countries=, supports?, #supports_network_tokenization?, #supports_scrubbing?, #test?
Methods included from CreditCardFormatting
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Instance Method Details
#authorize(money, credit_card, options = {}) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/active_merchant/billing/gateways/sage/sage_bankcard.rb', line 21 def (money, credit_card, = {}) post = {} add_credit_card(post, credit_card) add_transaction_data(post, money, ) commit(:authorization, post) end |
#capture(money, reference, options = {}) ⇒ Object
The money
amount is not used. The entire amount of the initial authorization will be captured.
37 38 39 40 41 |
# File 'lib/active_merchant/billing/gateways/sage/sage_bankcard.rb', line 37 def capture(money, reference, = {}) post = {} add_reference(post, reference) commit(:capture, post) end |
#credit(money, credit_card, options = {}) ⇒ Object
49 50 51 52 53 54 |
# File 'lib/active_merchant/billing/gateways/sage/sage_bankcard.rb', line 49 def credit(money, credit_card, = {}) post = {} add_credit_card(post, credit_card) add_transaction_data(post, money, ) commit(:credit, post) end |
#purchase(money, credit_card, options = {}) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/active_merchant/billing/gateways/sage/sage_bankcard.rb', line 28 def purchase(money, credit_card, = {}) post = {} add_credit_card(post, credit_card) add_transaction_data(post, money, ) commit(:purchase, post) end |
#refund(money, reference, options = {}) ⇒ Object
56 57 58 59 60 61 |
# File 'lib/active_merchant/billing/gateways/sage/sage_bankcard.rb', line 56 def refund(money, reference, ={}) post = {} add_reference(post, reference) add_transaction_data(post, money, ) commit(:refund, post) end |
#void(reference, options = {}) ⇒ Object
43 44 45 46 47 |
# File 'lib/active_merchant/billing/gateways/sage/sage_bankcard.rb', line 43 def void(reference, = {}) post = {} add_reference(post, reference) commit(:void, post) end |