Class: ActiveMerchant::Billing::SageVirtualCheckGateway
- Includes:
- SageCore
- Defined in:
- lib/active_merchant/billing/gateways/sage/sage_virtual_check.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
- #credit(money, credit_card, options = {}) ⇒ Object
- #purchase(money, credit_card, options = {}) ⇒ Object
- #refund(money, credit_card, 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_scrubbing?, #test?
Methods included from CreditCardFormatting
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Instance Method Details
#credit(money, credit_card, options = {}) ⇒ Object
24 25 26 27 |
# File 'lib/active_merchant/billing/gateways/sage/sage_virtual_check.rb', line 24 def credit(money, credit_card, = {}) ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE refund(money, source, ) end |
#purchase(money, credit_card, options = {}) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/active_merchant/billing/gateways/sage/sage_virtual_check.rb', line 10 def purchase(money, credit_card, = {}) post = {} add_check(post, credit_card) add_check_customer_data(post, ) add_transaction_data(post, money, ) commit(:purchase, post) end |
#refund(money, credit_card, options = {}) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/active_merchant/billing/gateways/sage/sage_virtual_check.rb', line 29 def refund(money, credit_card, = {}) post = {} add_check(post, credit_card) add_check_customer_data(post, ) add_transaction_data(post, money, ) commit(:credit, post) end |
#void(reference, options = {}) ⇒ Object
18 19 20 21 22 |
# File 'lib/active_merchant/billing/gateways/sage/sage_virtual_check.rb', line 18 def void(reference, = {}) post = {} add_reference(post, reference) commit(:void, post) end |