Methods

Class Index [+]

Quicksearch

ActiveMerchant::Billing::ModernPaymentsGateway

Public Class Methods

new(options = {}) click to toggle source
    # File lib/active_merchant/billing/gateways/modern_payments.rb, line 11
11:       def initialize(options = {})
12:         requires!(options, :login, :password)
13:         @options = options
14:         super
15:       end

Public Instance Methods

purchase(money, credit_card, options = {}) click to toggle source
    # File lib/active_merchant/billing/gateways/modern_payments.rb, line 17
17:       def purchase(money, credit_card, options = {})
18:         customer_response = cim.create_customer(options)
19:         return customer_response unless customer_response.success?
20:         
21:         customer_id = customer_response.params["create_customer_result"]
22:         
23:         card_response = cim.modify_customer_credit_card(customer_id, credit_card)
24:         return card_response unless card_response.success?
25:         
26:         cim.authorize_credit_card_payment(customer_id, money)
27:       end

Private Instance Methods

cim() click to toggle source
    # File lib/active_merchant/billing/gateways/modern_payments.rb, line 30
30:       def cim
31:         @cim ||= ModernPaymentsCimGateway.new(@options)
32:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.