lib/active_merchant/billing/gateways/conekta.rb in activemerchant-1.60.0 vs lib/active_merchant/billing/gateways/conekta.rb in activemerchant-1.61.0

- old
+ new

@@ -10,11 +10,11 @@ self.money_format = :cents self.default_currency = 'MXN' def initialize(options = {}) requires!(options, :key) - options[:version] ||= '0.3.0' + options[:version] ||= '1.0.0' super end def purchase(money, payment_source, options = {}) post = {} @@ -51,9 +51,14 @@ post[:order_id] = identifier add_order(post, money, options) commit(:post, "charges/#{identifier}/refund", post) + end + + def void(identifier, options = {}) + post = {} + commit(:post, "charges/#{identifier}/void", post) end def supports_scrubbing true end