lib/active_merchant/billing/gateways/cashnet.rb in activemerchant-1.55.0 vs lib/active_merchant/billing/gateways/cashnet.rb in activemerchant-1.56.0

- old
+ new

@@ -1,8 +1,10 @@ module ActiveMerchant #:nodoc: module Billing #:nodoc: class CashnetGateway < Gateway + include Empty + self.live_url = "https://commerce.cashnet.com/" self.supported_countries = ["US"] self.supported_cardtypes = [:visa, :master, :american_express, :discover, :diners_club, :jcb] self.homepage_url = "http://www.higherone.com/" @@ -45,10 +47,11 @@ def refund(money, identification, options = {}) post = {} post[:origtx] = identification add_invoice(post, options) + add_customer_data(post, options) commit('REFUND', money, post) end private @@ -104,9 +107,10 @@ end end def add_customer_data(post, options) post[:email_g] = options[:email] + post[:custcode] = options[:custcode] unless empty?(options[:custcode]) end def expdate(creditcard) year = format(creditcard.year, :two_digits) month = format(creditcard.month, :two_digits)