Class: SolidusRazorpay::RazorpayGateway

Inherits:
Spree::PaymentMethod
  • Object
show all
Defined in:
app/models/solidus_razorpay/razorpay_gateway.rb

Instance Method Summary collapse

Instance Method Details

#auto_capture?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 22

def auto_capture?
  true
end

#partial_nameObject Also known as: method_type



26
27
28
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 26

def partial_name
  'razorpay'
end

#providerObject



18
19
20
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 18

def provider
  self
end

#provider_classObject



14
15
16
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 14

def provider_class
  self
end

#purchase(amount, transaction_details, gateway_options = {}) ⇒ Object



31
32
33
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 31

def purchase(amount, transaction_details, gateway_options={})
  ActiveMerchant::Billing::Response.new(true, 'razorpay success')
end

#request_typeObject



35
36
37
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 35

def request_type
  'DEFAULT'
end

#supports?(source) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 10

def supports?(source)
  true
end