lib/active_merchant/billing/gateways/blue_pay.rb in activemerchant-1.85.0 vs lib/active_merchant/billing/gateways/blue_pay.rb in activemerchant-1.86.0
- old
+ new
@@ -171,10 +171,10 @@
add_customer_data(post, options)
commit('CREDIT', money, post)
end
def credit(money, payment_object, options = {})
- if(payment_object && payment_object.kind_of?(String))
+ if payment_object&.kind_of?(String)
ActiveMerchant.deprecated 'credit should only be used to credit a payment method'
return refund(money, payment_object, options)
end
post = {}