Class: Razorpay::Token

Inherits:
Entity
  • Object
show all
Defined in:
lib/razorpay/token.rb

Instance Attribute Summary

Attributes inherited from Entity

#attributes

Class Method Summary collapse

Methods inherited from Entity

#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang

Constructor Details

This class inherits a constructor from Razorpay::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Razorpay::Entity

Class Method Details

.create(options) ⇒ Object



12
13
14
# File 'lib/razorpay/token.rb', line 12

def self.create(options)
  request.create options
end

.delete(options) ⇒ Object



20
21
22
# File 'lib/razorpay/token.rb', line 20

def self.delete(options)
  request.post "delete", options
end

.fetch(options) ⇒ Object



16
17
18
# File 'lib/razorpay/token.rb', line 16

def self.fetch(options)
  request.post "fetch", options
end

.process_payment_on_alternate_pa_or_pg(options) ⇒ Object



24
25
26
# File 'lib/razorpay/token.rb', line 24

def self.process_payment_on_alternate_pa_or_pg(options)
  request.post "service_provider_tokens/token_transactional_data", options
end

.requestObject



8
9
10
# File 'lib/razorpay/token.rb', line 8

def self.request
  Razorpay::Request.new('tokens')
end