lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.13.0 vs lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.14.0
- old
+ new
@@ -137,10 +137,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)
- warn CREDIT_DEPRECATION_MESSAGE
+ deprecated CREDIT_DEPRECATION_MESSAGE
refund(money, reference_or_credit_card)
else
request = build_refund_request(money, reference_or_credit_card, options)
commit(request)
end