Module: PayTM::Merchant::ClassMethods

Defined in:
lib/paytm/merchant.rb

Overview

Class Methods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aes_keyObject

Class attr_accessors



27
28
29
# File 'lib/paytm/merchant.rb', line 27

def aes_key
  @aes_key
end

#api_base_uriObject

Class attr_accessors



27
28
29
# File 'lib/paytm/merchant.rb', line 27

def api_base_uri
  @api_base_uri
end

#merchant_guidObject

Class attr_accessors



27
28
29
# File 'lib/paytm/merchant.rb', line 27

def merchant_guid
  @merchant_guid
end

#sales_wallet_idObject

Class attr_accessors



27
28
29
# File 'lib/paytm/merchant.rb', line 27

def sales_wallet_id
  @sales_wallet_id
end

Instance Method Details

#check_transaction_status_for(transaction_id, options = {}) ⇒ Object



39
40
41
# File 'lib/paytm/merchant.rb', line 39

def check_transaction_status_for(transaction_id, options = {})
  new.check_transaction_status_for transaction_id, options
end

#config(&block) ⇒ Object



29
30
31
32
# File 'lib/paytm/merchant.rb', line 29

def config(&block)
  instance_eval(&block)
  set_httparty_base_uri
end

#set_httparty_base_uriObject

Base URI for HTTParty requests



35
36
37
# File 'lib/paytm/merchant.rb', line 35

def set_httparty_base_uri
  base_uri(api_base_uri || PayTM::Merchant::Staging_Base_Uri)
end