Module: PayTM::Merchant::ClassMethods
- Defined in:
- lib/paytm/merchant.rb
Overview
Class Methods
Instance Attribute Summary collapse
-
#aes_key ⇒ Object
Class attr_accessors.
-
#api_base_uri ⇒ Object
Class attr_accessors.
-
#merchant_guid ⇒ Object
Class attr_accessors.
-
#sales_wallet_id ⇒ Object
Class attr_accessors.
Instance Method Summary collapse
- #check_transaction_status_for(transaction_id, options = {}) ⇒ Object
- #config(&block) ⇒ Object
-
#set_httparty_base_uri ⇒ Object
Base URI for HTTParty requests.
Instance Attribute Details
#aes_key ⇒ Object
Class attr_accessors
27 28 29 |
# File 'lib/paytm/merchant.rb', line 27 def aes_key @aes_key end |
#api_base_uri ⇒ Object
Class attr_accessors
27 28 29 |
# File 'lib/paytm/merchant.rb', line 27 def api_base_uri @api_base_uri end |
#merchant_guid ⇒ Object
Class attr_accessors
27 28 29 |
# File 'lib/paytm/merchant.rb', line 27 def merchant_guid @merchant_guid end |
#sales_wallet_id ⇒ Object
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, = {}) new.check_transaction_status_for transaction_id, 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_uri ⇒ Object
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 |