class OffsitePayments::Helper

def initialize(order, account, options = {})

Parameters:
  • options (Hash) -- convenience param to set common attributes including:
  • account (String) -- merchant account id from gateway provider
  • order (String) -- unique id of this order
def initialize(order, account, options = {})
  options.assert_valid_keys([:amount, :currency, :test, :credential2, :credential3, :credential4, :country, :account_name, :description, :transaction_type, :authcode, :notify_url, :return_url, :redirect_param, :forward_url, :checkout_token])
  @fields             = {}
  @raw_html_fields    = []
  @test               = options[:test]
  self.order          = order
  self.account        = account
  self.amount         = options[:amount]
  self.currency       = options[:currency]
  self.credential2    = options[:credential2]
  self.credential3    = options[:credential3]
  self.credential4    = options[:credential4]
  self.notify_url     = options[:notify_url]
  self.return_url     = options[:return_url]
  self.redirect_param = options[:redirect_param]
  self.checkout_token = options[:checkout_token]
end