lib/active_merchant/billing/gateways/epsilon.rb in active_merchant-epsilon-0.7.0 vs lib/active_merchant/billing/gateways/epsilon.rb in active_merchant-epsilon-0.7.1

- old
+ new

@@ -189,9 +189,16 @@ } params[:memo1] = detail[:memo1] if detail.has_key?(:memo1) params[:memo2] = detail[:memo2] if detail.has_key?(:memo2) + if detail.has_key?(:token) + params[:token] = detail[:token] + params.delete(:card_number) + params.delete(:expire_y) + params.delete(:expire_m) + end + if payment_method.class.requires_verification_value? params.merge!( security_code: payment_method.verification_value, security_check: 1, # use security code )