Sha256: 0381eceda1fe24fb13180d7290bec88f9c2e4cf2b9c1daee1fe2c69bf5670342

Contents?: true

Size: 1.33 KB

Versions: 33

Compression:

Stored size: 1.33 KB

Contents

class CabooseStore::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

33 entries across 33 versions & 1 rubygems

Version Path
caboose-store-0.0.43 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.42 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.41 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.40 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.39 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.38 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.37 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.36 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.35 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.34 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.33 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.32 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.31 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.30 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.29 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.28 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.27 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.26 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.25 app/models/caboose_store/payment_processors/base.rb
caboose-store-0.0.24 app/models/caboose_store/payment_processors/base.rb