core/app/models/spree/payment_method.rb
def gateway
      gateway_options = options
      gateway_options.delete :login if gateway_options.key?(:login) && gateway_options[:login].nil?

      # All environments except production considered to be test
      test_server = gateway_options[:server] != 'production'
      test_mode = gateway_options[:test_mode]

      gateway_options[:test] = (test_server || test_mode)

      @gateway ||= gateway_class.new(gateway_options)
    end
# Represents the gateway of this payment method
#
# The gateway is responsible for communicating with the providers API.
#
# It implements methods for:
#
#     - authorize
#     - purchase
#     - capture
#     - void
#     - credit
#
Represents the gateway of this payment method
The gateway is responsible for communicating with the providers API.

It implements methods for.

authorize
purchase
capture
void
credit
Represents the gateway of this payment method The gateway is responsible for communicating with the providers API . It implements methods for . authorize purchase capture void credit
def gateway
      gateway_options = options
      gateway_options.delete :login if gateway_options.key?(:login) && gateway_options[:login].nil?
      test_server = gateway_options[:server] != 'production'
      test_mode = gateway_options[:test_mode]
      gateway_options[:test] = (test_server || test_mode)
      @gateway ||= gateway_class.new(gateway_options)
    end
def gateway gateway_options = options gateway_options . delete :login if gateway_options . key? ( :login ) && gateway_options [ :login ] . nil? test_server = gateway_options [ :server ] != 'production' test_mode = gateway_options [ :test_mode ] gateway_options [ :test ] = ( test_server || test_mode ) @gateway ||= gateway_class . new ( gateway_options ) end
Represents the gateway of this payment method
The gateway is responsible for communicating with the providers API.
Represents the gateway of this payment method The gateway is responsible for communicating with the providers API .
# All environments except production considered to be test