Class: Gateway::RazorpayGateway
- Inherits:
-
Gateway
- Object
- Gateway
- Gateway::RazorpayGateway
- Defined in:
- app/models/spree/gateway/razorpay_gateway.rb
Instance Method Summary collapse
- #auto_capture? ⇒ Boolean
- #method_type ⇒ Object
- #provider ⇒ Object
- #provider_class ⇒ Object
- #purchase(amount, transaction_details, gateway_options = {}) ⇒ Object
- #request_type ⇒ Object
- #supports?(source) ⇒ Boolean
Instance Method Details
#auto_capture? ⇒ Boolean
22 23 24 |
# File 'app/models/spree/gateway/razorpay_gateway.rb', line 22 def auto_capture? true end |
#method_type ⇒ Object
26 27 28 |
# File 'app/models/spree/gateway/razorpay_gateway.rb', line 26 def method_type 'razorpay' end |
#provider ⇒ Object
18 19 20 |
# File 'app/models/spree/gateway/razorpay_gateway.rb', line 18 def provider self end |
#provider_class ⇒ Object
14 15 16 |
# File 'app/models/spree/gateway/razorpay_gateway.rb', line 14 def provider_class self end |
#purchase(amount, transaction_details, gateway_options = {}) ⇒ Object
30 31 32 |
# File 'app/models/spree/gateway/razorpay_gateway.rb', line 30 def purchase(amount, transaction_details, ={}) ActiveMerchant::Billing::Response.new(true, 'razorpay success') end |
#request_type ⇒ Object
34 35 36 |
# File 'app/models/spree/gateway/razorpay_gateway.rb', line 34 def request_type 'DEFAULT' end |
#supports?(source) ⇒ Boolean
10 11 12 |
# File 'app/models/spree/gateway/razorpay_gateway.rb', line 10 def supports?(source) true end |