Class: Spree::Conekta::MonthlyPaymentProvider
- Inherits:
-
Object
- Object
- Spree::Conekta::MonthlyPaymentProvider
- Defined in:
- lib/spree/conekta/monthly_payment_provider.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #authorize(amount, source, gateway_options = {}) ⇒ Object
- #capture(amount, source, gateway_options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ MonthlyPaymentProvider
constructor
A new instance of MonthlyPaymentProvider.
Constructor Details
#initialize(options = {}) ⇒ MonthlyPaymentProvider
Returns a new instance of MonthlyPaymentProvider.
7 8 9 10 |
# File 'lib/spree/conekta/monthly_payment_provider.rb', line 7 def initialize( = {}) = @auth_token = [:auth_token] end |
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
3 4 5 |
# File 'lib/spree/conekta/monthly_payment_provider.rb', line 3 def auth_token @auth_token end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/spree/conekta/monthly_payment_provider.rb', line 5 def end |
Instance Method Details
#authorize(amount, source, gateway_options = {}) ⇒ Object
12 13 14 |
# File 'lib/spree/conekta/monthly_payment_provider.rb', line 12 def (amount, source, = {}) Response.new(parse_conekta_response(source.conekta_response), ) end |
#capture(amount, source, gateway_options = {}) ⇒ Object
16 17 18 |
# File 'lib/spree/conekta/monthly_payment_provider.rb', line 16 def capture(amount, source, = {}) Response.new({}, ) end |