tomriley-active_merchant 1.4.2.5 → 1.4.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/active_merchant.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "active_merchant"
|
|
3
|
-
s.version = "1.4.2.
|
|
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))
|