app/models/spree/gateway/authorize_net.rb in solidus_gateway-1.1.1 vs app/models/spree/gateway/authorize_net.rb in solidus_gateway-1.2.0

- old
+ new

@@ -5,13 +5,12 @@ def provider_class ActiveMerchant::Billing::AuthorizeNetGateway end - def options_with_test_preference - options_without_test_preference.merge(test: self.preferred_test_mode) + def options + super().merge(test: self.preferred_test_mode) end - alias_method_chain :options, :test_preference def credit(amount, response_code, refund, gateway_options = {}) gateway_options[:card_number] = refund[:originator].payment.source.last_digits auth_net_gateway.refund(amount, response_code, gateway_options) end