lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.131.0 vs lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.133.0

- old
+ new

@@ -71,22 +71,23 @@ post = {} auth, transaction_id, token, exp_month, exp_year, _, original_currency = authorization.split('|') add_transaction_data('Credit', post, money, options.merge!({ currency: original_currency })) post[:sg_CreditType] = 2 post[:sg_AuthCode] = auth - post[:sg_TransactionID] = transaction_id post[:sg_CCToken] = token post[:sg_ExpMonth] = exp_month post[:sg_ExpYear] = exp_year + post[:sg_TransactionID] = transaction_id unless options[:unreferenced_refund] commit(post) end def credit(money, payment, options = {}) post = {} add_payment(post, payment, options) add_transaction_data('Credit', post, money, options) + add_customer_details(post, payment, options) post[:sg_CreditType] = 1 commit(post) end