lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.12.1 vs lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.13.0
- old
+ new
@@ -97,9 +97,14 @@
post[:dateval] = '0000'
commit('void', options[:amount], post)
end
def credit(money, identification, options = {})
+ warn CREDIT_DEPRECATION_MESSAGE
+ refund(money, identification, options)
+ end
+
+ def refund(money, identification, options = {})
post = {}
add_invoice(post, options)
add_reference(post, identification)
commit('refund', money, post)
end