smulube-activemerchant 1.7.1.4 → 1.7.1.5
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.tar.gz.sig +0 -0
- data/lib/active_merchant/billing/gateways/payflow_nvp_uk.rb +13 -11
- data/lib/active_merchant/version.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
@@ -61,6 +61,16 @@ module ActiveMerchant #:nodoc:
|
|
61
61
|
:inquiry => "I"
|
62
62
|
}
|
63
63
|
|
64
|
+
AUTO_BILLING = {
|
65
|
+
:no_auto => "NoAutoBill",
|
66
|
+
:add_to_next => "AddToNextBilling"
|
67
|
+
}
|
68
|
+
|
69
|
+
INITAMT_ACTIONS = {
|
70
|
+
:cancel => "CancelOnFailure",
|
71
|
+
:continue => "ContinueOnFailure"
|
72
|
+
}
|
73
|
+
|
64
74
|
# Creates a new PayflowNvpUkGateway
|
65
75
|
#
|
66
76
|
# The gateway requires that a valid login and password be passed
|
@@ -235,7 +245,7 @@ module ActiveMerchant #:nodoc:
|
|
235
245
|
# * <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.
|
236
246
|
# * <tt>:description</tt> - The description of the profile. Required for the profile to be created successfully.
|
237
247
|
# * <tt>:optionaltrxamt</tt> - Optional initial transaction amount in cents.
|
238
|
-
# * <tt>:failedinitamtaction</tt> - What to action to perform if the initial transaction fails. Can be either :continue or :cancel. Defaults to :cancel.
|
248
|
+
# * <tt>:failedinitamtaction</tt> - What to action to perform if the initial transaction fails. Can be either :continue or :cancel. Defaults to :cancel.
|
239
249
|
# * <tt>:autobilloutstanding</tt> - Controls whether to automatically bill the outstanding balance amount in the next payment. Can be either :no_auto or :add_to_next. Defaults to :no_auto
|
240
250
|
def recurring(money, creditcard, options = {})
|
241
251
|
post = {}
|
@@ -355,16 +365,8 @@ module ActiveMerchant #:nodoc:
|
|
355
365
|
post[:profilename] = (options[:name] || creditcard.name).to_s.slice(0,128) unless options[:name].nil? && creditcard.nil?
|
356
366
|
post[:desc] = options[:description] unless options[:description].nil?
|
357
367
|
post[:optionaltrxamt] = amount(options[:optionaltrxamt]) unless options[:optionaltrxamt].nil?
|
358
|
-
|
359
|
-
|
360
|
-
elsif options[:failedinitamtaction] == :continue
|
361
|
-
post[:failedinitamtaction] = "ContinueOnFailure"
|
362
|
-
end
|
363
|
-
if options[:autobilloutstanding].nil? || options[:autobilloutstanding] == :no_auto
|
364
|
-
post[:autobilloutamt] = "NoAutoBill"
|
365
|
-
elsif options[:autobilloutstanding] == :add_to_next
|
366
|
-
post[:autobilloutamt] = "AddToNextBilling"
|
367
|
-
end
|
368
|
+
post[:failedinitamtaction] = INITAMT_ACTIONS[options[:failedinitamtaction]] if INITAMT_ACTIONS.has_key?(options[:failedinitamtaction])
|
369
|
+
post[:autobilloutamt] = AUTO_BILLING[options[:autobilloutstanding]] if AUTO_BILLING.has_key?(options[:autobilloutstanding])
|
368
370
|
end
|
369
371
|
|
370
372
|
def format_date(time)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smulube-activemerchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 105
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
9
|
- 1
|
10
|
-
-
|
11
|
-
version: 1.7.1.
|
10
|
+
- 5
|
11
|
+
version: 1.7.1.5
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Tobias Luetke
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
RGv1VYD5jSaHiQ==
|
38
38
|
-----END CERTIFICATE-----
|
39
39
|
|
40
|
-
date: 2010-09-
|
40
|
+
date: 2010-09-24 00:00:00 +01:00
|
41
41
|
default_executable:
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|