lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.44.0

- old
+ new

@@ -1,5 +1,7 @@ +require "active_support/core_ext/string/access" + module ActiveMerchant module Billing class DataCashGateway < Gateway self.default_currency = 'GBP' self.supported_countries = ['GB'] @@ -136,10 +138,10 @@ # * <tt>options</tt> Are ignored when refunding via reference to an existing transaction, otherwise # * <tt>:order_id</tt> A unique reference for this order (corresponds to merchantreference in datacash documentation) # * <tt>:address</tt>:: billing address for card def credit(money, reference_or_credit_card, options = {}) if reference_or_credit_card.is_a?(String) - deprecated CREDIT_DEPRECATION_MESSAGE + ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE refund(money, reference_or_credit_card) else request = build_refund_request(money, reference_or_credit_card, options) commit(request) end