tomriley-active_merchant 1.4.2.5 → 1.4.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "active_merchant"
3
- s.version = "1.4.2.5"
3
+ s.version = "1.4.2.6"
4
4
  s.date = "2009-01-12"
5
5
  s.summary = "Active Merchant is a simple payment abstraction library used in and sponsored by Shopify."
6
6
  s.homepage = "http://www.activemerchant.org/"
@@ -243,7 +243,15 @@ module ActiveMerchant #:nodoc:
243
243
  add_pair(post, :CardNumber, credit_card.number, :required => true)
244
244
 
245
245
  add_pair(post, :ExpiryDate, format_date(credit_card.month, credit_card.year), :required => true)
246
-
246
+
247
+ start_date = format_date(credit_card.start_month, credit_card.start_year)
248
+ add_pair(post, :StartDate, start_date) if start_date
249
+
250
+ unless credit_card.issue_number.blank?
251
+ issue_number = sprintf("%02d", credit_card.issue_number.to_i)
252
+ add_pair(post, :IssueNumber, issue_number)
253
+ end
254
+
247
255
  #if requires_start_date_or_issue_number?(credit_card)
248
256
  if credit_card.start_month && credit_card.start_year
249
257
  add_pair(post, :StartDate, format_date(credit_card.start_month, credit_card.start_year))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomriley-active_merchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2.5
4
+ version: 1.4.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke