Class: BillingIntegration::ConektaGateway
- Inherits:
-
Gateway
- Object
- Gateway
- BillingIntegration::ConektaGateway
- Defined in:
- app/models/spree/billing_integration/conekta_gateway.rb
Instance Method Summary collapse
- #auto_capture? ⇒ Boolean
- #card? ⇒ Boolean
- #method_type ⇒ Object
- #payment_source_class ⇒ Object
- #provider_class ⇒ Object
Instance Method Details
#auto_capture? ⇒ Boolean
27 28 29 |
# File 'app/models/spree/billing_integration/conekta_gateway.rb', line 27 def auto_capture? false end |
#card? ⇒ Boolean
23 24 25 |
# File 'app/models/spree/billing_integration/conekta_gateway.rb', line 23 def card? preferred_source_method.eql?('card') end |
#method_type ⇒ Object
19 20 21 |
# File 'app/models/spree/billing_integration/conekta_gateway.rb', line 19 def method_type card? ? 'gateway' : 'conekta' end |
#payment_source_class ⇒ Object
15 16 17 |
# File 'app/models/spree/billing_integration/conekta_gateway.rb', line 15 def payment_source_class card? ? CreditCard : Spree::ConektaPayment end |
#provider_class ⇒ Object
10 11 12 13 |
# File 'app/models/spree/billing_integration/conekta_gateway.rb', line 10 def provider_class warn "DEPRECATION WARNING: Spree::BillingIntegration::Conekta will be deprecated, please use BillingIntegration::ConektaGateway::#{preferred_source_method.titleize} instead" Spree::Conekta::Provider end |