Sha256: 0e30ad6787c28fbf348d3de2fc8bc34d5e8672ee875bf38da7147a7910c6fdcc

Contents?: true

Size: 1.33 KB

Versions: 352

Compression:

Stored size: 1.33 KB

Contents

class Caboose::PaymentProcessors::Base
  
  # Gets a transaction object that obfuscates transaction info.  
  # Included in this info is the relay URL, which should be set to /checkout/payment-relay.  
  def get_authorize_transaction(order)
    return {}
  end
    
  # Gets the hidden form and hidden iframe to which the form will be submitted.  
  # Both are shown on the /checkout/billing page.                                                                                  
  def get_authorize_form(transaction)
    return ""
  end
  
  # Handles the relay during an authorize transaction.                                          
  # Should save the transaction information if a successful authorize.
  # Returns the response required to make the processor to redirect to /checkout/payment-receipt.
  def authorize_relay(params)
    return ""
  end
     
  # Called during the receipt of an authorize transaction.
  # Returns true of false indicating whether the authorize transaction was successful.
  def authorized?(params)
    return false
  end
  
  # Called if authorized? returns false.
  # Returns the error given by the processor.
  def authorize_error(params)
    return ""
  end
  
  # Captures funds for the given order.
  # Returns true or false indicating the success of the transaction.
  def capture(order)
    return false
  end
end

Version data entries

352 entries across 352 versions & 1 rubygems

Version Path
caboose-cms-0.7.23 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.22 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.21 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.20 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.19 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.18 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.17 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.16 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.15 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.14 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.13 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.12 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.11 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.10 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.9 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.8 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.7 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.6 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.5 app/models/caboose/payment_processors/base.rb
caboose-cms-0.7.4 app/models/caboose/payment_processors/base.rb