lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.4.1 vs lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.4.2
- old
+ new
@@ -149,19 +149,15 @@
if requires_start_date_or_issue_number?(credit_card)
add_pair(post, :StartDateMM, format(credit_card.start_month, :two_digits))
add_pair(post, :StartDateYY, format(credit_card.start_year, :two_digits))
- add_pair(post, :IssueNumber, format_issue_number(credit_card))
+ add_pair(post, :IssueNumber, credit_card.issue_number)
end
add_pair(post, :CV2, credit_card.verification_value)
end
- def format_issue_number(credit_card)
- card_brand(credit_card).to_s == 'solo' ? format(credit_card.issue_number, :two_digits) : credit_card.issue_number
- end
-
def commit(action, parameters)
response = parse( ssl_post(URL, post_data(action, parameters)) )
Response.new(response[:response_code] == APPROVED, message_from(response), response,
:test => test?,