Class: Gateway::PayuLatamGateway
- Inherits:
-
Spree::Gateway
- Object
- Spree::Gateway
- Gateway::PayuLatamGateway
- Defined in:
- app/models/solidus/gateway/payu_latam_gateway.rb
Instance Method Summary collapse
- #authorize(amount, credit_card, gateway_options) ⇒ Object
- #capture(amount, authorization, gateway_options) ⇒ Object
- #credit(amount, authorization, gateway_options) ⇒ Object
- #method_type ⇒ Object
- #partial_name ⇒ Object
- #provider_class ⇒ Object
- #purchase(amount, credit_card, gateway_options) ⇒ Object
- #void(authorization, gateway_options) ⇒ Object
Instance Method Details
#authorize(amount, credit_card, gateway_options) ⇒ Object
23 24 25 26 27 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 23 def (amount, credit_card, ) cvv = credit_card.verification_value = add_missing_fields(, cvv) provider.(amount, credit_card, ) end |
#capture(amount, authorization, gateway_options) ⇒ Object
29 30 31 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 29 def capture(amount, , ) provider.capture(amount, , ) end |
#credit(amount, authorization, gateway_options) ⇒ Object
43 44 45 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 43 def credit(amount, , ) provider.refund(amount, , ) end |
#method_type ⇒ Object
14 15 16 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 14 def method_type 'payu_latam' end |
#partial_name ⇒ Object
18 19 20 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 18 def partial_name 'payu_latam' end |
#provider_class ⇒ Object
9 10 11 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 9 def provider_class ActiveMerchant::Billing::PayuLatamGateway end |
#purchase(amount, credit_card, gateway_options) ⇒ Object
37 38 39 40 41 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 37 def purchase(amount, credit_card, ) cvv = credit_card.verification_value = add_missing_fields(, cvv) provider.purchase(amount, credit_card, ) end |
#void(authorization, gateway_options) ⇒ Object
33 34 35 |
# File 'app/models/solidus/gateway/payu_latam_gateway.rb', line 33 def void(, ) provider.void(, ) end |