Class: SolidusRazorpay::RazorpayGateway
- Inherits:
-
Spree::PaymentMethod
- Object
- Spree::PaymentMethod
- SolidusRazorpay::RazorpayGateway
- Defined in:
- app/models/solidus_razorpay/razorpay_gateway.rb
Instance Method Summary collapse
- #auto_capture? ⇒ Boolean
- #partial_name ⇒ Object (also: #method_type)
- #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/solidus_razorpay/razorpay_gateway.rb', line 22 def auto_capture? true end |
#partial_name ⇒ Object Also known as: method_type
26 27 28 |
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 26 def partial_name 'razorpay' end |
#provider ⇒ Object
18 19 20 |
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 18 def provider self end |
#provider_class ⇒ Object
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, ={}) ActiveMerchant::Billing::Response.new(true, 'razorpay success') end |
#request_type ⇒ Object
35 36 37 |
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 35 def request_type 'DEFAULT' end |
#supports?(source) ⇒ Boolean
10 11 12 |
# File 'app/models/solidus_razorpay/razorpay_gateway.rb', line 10 def supports?(source) true end |