smulube-activemerchant 1.5.1.3 → 1.5.1.4
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/.gitignore +1 -0
- data/CHANGELOG +3 -0
- data/lib/active_merchant/billing/gateways/payflow_nvp_uk.rb +5 -3
- data/lib/active_merchant/billing/integrations/chronopay/helper.rb +3 -3
- data/lib/active_merchant/version.rb +1 -1
- data/test/unit/credit_card_test.rb +2 -2
- data/test/unit/gateways/garanti_test.rb +5 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= ActiveMerchant CHANGELOG
|
2
2
|
|
3
|
+
* Fix test failure in chronopay helper in Ruby 1.9.1 [cody]
|
4
|
+
* Fix timezone issue in credit card test. [cody]
|
5
|
+
* Fix failing unit test for Garanti gateway [cody]
|
3
6
|
* Fix failing CyberSource remote test [Patrick Joyce]
|
4
7
|
* Support for Garanti Sanal Pos: Turkish bank and billing gateway [Selem Delul]
|
5
8
|
* Add deprecation note for Money objects to Bogus gateway [Soleone]
|
@@ -224,10 +224,11 @@ module ActiveMerchant #:nodoc:
|
|
224
224
|
# * <tt>:starting_at</tt> - Takes a Date, Time or string in MMDDYYYY format. The date must be in the future.
|
225
225
|
# * <tt>:name</tt> - The name of the customer to be billed. If omitted the name from the creditcard is used.
|
226
226
|
# * <tt>:periodicity</tt> - The frequency that the recurring payments will occur at. Can be one of: [:daily, :weekly, :biweekly (every 2 weeks), :semimonthly (twice every month), :quadweekly (once every 4 weeks), :monthly (every month on the same date as the first payment), :quarterly (every 3 months on the same date as the first payment), :semiyearly (every 6 months on the same date as the first payment), :yearly.
|
227
|
-
# * <tt>:payments</tt> - Integer value describing the number of payments to be made.
|
227
|
+
# * <tt>:payments</tt> - Integer value describing the number of payments to be made. If set to 0 then profile will continue until terminated
|
228
228
|
# * <tt>:comment<tt> - Optional description of the goods or service being purchased
|
229
229
|
# * <tt>:max_failed_payments</tt> - The number of payments that are allowed to fail before PayPal suspends the profile. Defaults to 0 which means PayPal will never suspend the profile until the term is completed. PayPal will keep attempting to process failed payments.
|
230
230
|
# * <tt>:currency</tt> - The currency of the transaction. If present must be one of { AUD, CAD, EUR, JPY, GBP or USD }. If omitted the default currency is used.
|
231
|
+
# * <tt>:description</tt> - The description of the profile. Required for the profile to be created successfully.
|
231
232
|
def recurring(money, creditcard, options = {})
|
232
233
|
post = {}
|
233
234
|
add_creditcard(post, creditcard)
|
@@ -266,7 +267,7 @@ module ActiveMerchant #:nodoc:
|
|
266
267
|
post[:action] = RECURRING_ACTIONS[:deactivate]
|
267
268
|
post[:origprofileid] = profile_id.to_s
|
268
269
|
|
269
|
-
commit(TRANSACTIONS[:recurring], nil,
|
270
|
+
commit(TRANSACTIONS[:recurring], nil, post)
|
270
271
|
end
|
271
272
|
|
272
273
|
private
|
@@ -312,8 +313,9 @@ module ActiveMerchant #:nodoc:
|
|
312
313
|
post[:term] = options[:payments] unless options[:payments].nil?
|
313
314
|
post[:payperiod] = PERIODS[options[:periodicity]]
|
314
315
|
post[:desc] = options[:comment] unless options[:comment].nil?
|
315
|
-
post[:
|
316
|
+
post[:maxfailpayments] = options[:max_failed_payments] unless options[:max_failed_payments].nil?
|
316
317
|
post[:profilename] = (options[:name] || creditcard.name).to_s.slice(0,128)
|
318
|
+
post[:desc] = options[:description]
|
317
319
|
end
|
318
320
|
|
319
321
|
def format_date(time)
|
@@ -18,9 +18,9 @@ module ActiveMerchant #:nodoc:
|
|
18
18
|
'DE' => %w( DE AT CH LI ),
|
19
19
|
'PT' => %w( AO BR CV GW MZ PT ST TL),
|
20
20
|
'RU' => %w( BY KG KZ RU ),
|
21
|
-
'LV' =>
|
22
|
-
'CN1' =>
|
23
|
-
'NL' =>
|
21
|
+
'LV' => %w( LV ),
|
22
|
+
'CN1' => %w( CN ),
|
23
|
+
'NL' => %w( NL )
|
24
24
|
}
|
25
25
|
|
26
26
|
LANG_FOR_COUNTRY = COUNTRIES_FOR_LANG.inject(Hash.new("EN")) do |memo, (lang, countries)|
|
@@ -106,8 +106,8 @@ class CreditCardTest < Test::Unit::TestCase
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def test_should_require_a_valid_card_month
|
109
|
-
@visa.month = Time.now.month
|
110
|
-
@visa.year = Time.now.year
|
109
|
+
@visa.month = Time.now.utc.month
|
110
|
+
@visa.year = Time.now.utc.year
|
111
111
|
|
112
112
|
assert_valid @visa
|
113
113
|
end
|
@@ -3,7 +3,11 @@ require 'test_helper'
|
|
3
3
|
class GarantiTest < Test::Unit::TestCase
|
4
4
|
def setup
|
5
5
|
Base.gateway_mode = :test
|
6
|
-
@gateway = GarantiGateway.new(
|
6
|
+
@gateway = GarantiGateway.new(
|
7
|
+
:login => 'l',
|
8
|
+
:password => 'p',
|
9
|
+
:client_id => '1'
|
10
|
+
)
|
7
11
|
|
8
12
|
@credit_card = credit_card
|
9
13
|
@amount = 1000 #1000 cents, 10$
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 5
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.5.1.
|
9
|
+
- 4
|
10
|
+
version: 1.5.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Luetke
|
@@ -39,7 +39,7 @@ cert_chain:
|
|
39
39
|
hPaSTyVU0yCSnw==
|
40
40
|
-----END CERTIFICATE-----
|
41
41
|
|
42
|
-
date: 2010-
|
42
|
+
date: 2010-06-02 00:00:00 +01:00
|
43
43
|
default_executable:
|
44
44
|
dependencies:
|
45
45
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|