activemerchant_banklink 0.0.4 → 0.0.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/lib/active_merchant/billing/integrations/banklink.rb +6 -6
- data/lib/activemerchant_banklink/version.rb +2 -1
- data/test/unit/integrations/notifications/seb_est_notification_test.rb +3 -1
- data/test/unit/integrations/sampo_est_module_test.rb +3 -1
- data/test/unit/integrations/seb_est_module_test.rb +3 -1
- data/test/unit/integrations/swedbank_est_module_test.rb +3 -1
- metadata +22 -41
@@ -16,13 +16,13 @@ module ActiveMerchant #:nodoc:
|
|
16
16
|
# use:
|
17
17
|
# notify = SwedbankLtu::Notification.new(params)
|
18
18
|
#when 'HP' then SwedbankLtu
|
19
|
-
|
19
|
+
|
20
20
|
#when '70440' then SebLtu
|
21
21
|
#when 'SMPOLT22' then DanskeLtu
|
22
22
|
#when 'SNORLT22' then SnorasLtu
|
23
23
|
#when '112029720' then DnbnordLtu
|
24
|
-
#when '70100' then UbLtu
|
25
|
-
|
24
|
+
#when '70100' then UbLtu
|
25
|
+
|
26
26
|
# else raise(ArgumentError, "unknown sender id: #{params['VK_SND_ID']}")
|
27
27
|
# end
|
28
28
|
#end
|
@@ -103,13 +103,13 @@ module ActiveMerchant #:nodoc:
|
|
103
103
|
# where:
|
104
104
|
# || is string concatenation mark
|
105
105
|
# x1, x2, ..., xn are parameters of the query
|
106
|
-
# p(x) is length of the field x represented by three digits
|
106
|
+
# p(x) is the length of the field x in bytes, represented by three digits
|
107
107
|
# d is RSA secret exponent
|
108
108
|
# n is RSA modulus
|
109
109
|
module Common
|
110
|
-
# p(x) is length of the field x represented by three digits
|
110
|
+
# p(x) is the length of the field x in bytes, represented by three digits
|
111
111
|
def func_p(val)
|
112
|
-
sprintf("%03i", val.
|
112
|
+
sprintf("%03i", val.bytesize)
|
113
113
|
end
|
114
114
|
|
115
115
|
# Generate a string to be signed out of service message parameters.
|
@@ -1,4 +1,5 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../../test_helper'
|
1
|
+
#require File.dirname(__FILE__) + '/../../../test_helper'
|
2
|
+
require 'test_helper'
|
2
3
|
|
3
4
|
# setup test rsa private key
|
4
5
|
ActiveMerchant::Billing::Integrations::SebEst.test_private_key = <<EOF
|
@@ -87,3 +88,4 @@ class SebEstNotificationTest < Test::Unit::TestCase
|
|
87
88
|
"VK_SERVICE=1101&VK_VERSION=008&VK_SND_ID=EYP&VK_REC_ID=testvpos&VK_STAMP=88&VK_T_NO=2774&VK_AMOUNT=33&VK_CURR=EEK&VK_REC_ACC=10002050618003&VK_REC_NAME=ALLAS+ALLAR&VK_SND_ACC=10010046155012&VK_SND_NAME=t%C3%B5%C3%B5ger+%2C+Le%C3%B5p%C3%A4%C3%B6ld%C5%BE%C5%BD%C5%A1%C5%A0&VK_REF=123&VK_MSG=Porgandid&VK_T_DATE=26.11.2007&VK_MAC=LyCZRncu%2F%2BOi5nwzOkI6C9UMFohN6tSl3tLFyIJyNp2lGKBrDKZ2H8b%2BadU3XalzS7MwnAj8r%2FRhLpbsGNE5ysNyM4CKkSrsVzxoXbt9%2BB1foH9Rlp9LCeoR2H774f8UcMe9RVsE%2B%2BZfrEZzzXYyR1PXDCVOShQOAxlD9pbh8nk%3D&VK_LANG=EST&VK_RETURN=http%3A%2F%2F90.190.110.154%2Fseb_est%2Fnotify&VK_AUTO=N&VK_CHARSET=UTF-8&keel=EST&appname=UN3MIN&act=UPOSTEST2"
|
88
89
|
end
|
89
90
|
end
|
91
|
+
|
@@ -1,4 +1,5 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../test_helper'
|
1
|
+
#require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
require 'test_helper'
|
2
3
|
|
3
4
|
class SampoEstModuleTest < Test::Unit::TestCase
|
4
5
|
include ActiveMerchant::Billing::Integrations
|
@@ -8,3 +9,4 @@ class SampoEstModuleTest < Test::Unit::TestCase
|
|
8
9
|
assert_instance_of SampoEst::Notification, SampoEst.notification('name=cody')
|
9
10
|
end
|
10
11
|
end
|
12
|
+
|
@@ -1,4 +1,5 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../test_helper'
|
1
|
+
#require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
require 'test_helper'
|
2
3
|
|
3
4
|
class SebEstModuleTest < Test::Unit::TestCase
|
4
5
|
include ActiveMerchant::Billing::Integrations
|
@@ -8,3 +9,4 @@ class SebEstModuleTest < Test::Unit::TestCase
|
|
8
9
|
assert_instance_of SebEst::Notification, SebEst.notification('name=cody')
|
9
10
|
end
|
10
11
|
end
|
12
|
+
|
@@ -1,4 +1,5 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../test_helper'
|
1
|
+
#require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
require 'test_helper'
|
2
3
|
|
3
4
|
class SwedbankEstModuleTest < Test::Unit::TestCase
|
4
5
|
include ActiveMerchant::Billing::Integrations
|
@@ -8,3 +9,4 @@ class SwedbankEstModuleTest < Test::Unit::TestCase
|
|
8
9
|
assert_instance_of SwedbankEst::Notification, SwedbankEst.notification('name=cody')
|
9
10
|
end
|
10
11
|
end
|
12
|
+
|
metadata
CHANGED
@@ -1,35 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: activemerchant_banklink
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 0.0.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Indrek Juhkam
|
14
9
|
- Laurynas Butkus
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2011-02-08 00:00:00 +02:00
|
13
|
+
date: 2011-03-04 00:00:00.000000000 +13:00
|
20
14
|
default_executable:
|
21
15
|
dependencies: []
|
22
|
-
|
23
|
-
|
24
|
-
email:
|
16
|
+
description: Adds Banklink support to ActiveMerchant library. Banklink is provided
|
17
|
+
by major banks in the Baltic states.
|
18
|
+
email:
|
25
19
|
- laurynas.butkus@gmail.com
|
26
20
|
executables: []
|
27
|
-
|
28
21
|
extensions: []
|
29
|
-
|
30
22
|
extra_rdoc_files: []
|
31
|
-
|
32
|
-
files:
|
23
|
+
files:
|
33
24
|
- .gitignore
|
34
25
|
- Gemfile
|
35
26
|
- MIT-LICENSE
|
@@ -62,36 +53,26 @@ files:
|
|
62
53
|
has_rdoc: true
|
63
54
|
homepage: http://github.com/laurynas/activemerchant_banklink
|
64
55
|
licenses: []
|
65
|
-
|
66
56
|
post_install_message:
|
67
57
|
rdoc_options: []
|
68
|
-
|
69
|
-
require_paths:
|
58
|
+
require_paths:
|
70
59
|
- lib
|
71
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
61
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
|
78
|
-
- 0
|
79
|
-
version: "0"
|
80
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
67
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
|
86
|
-
segments:
|
87
|
-
- 0
|
88
|
-
version: "0"
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
89
72
|
requirements: []
|
90
|
-
|
91
73
|
rubyforge_project: activemerchant_banklink
|
92
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.5.2
|
93
75
|
signing_key:
|
94
76
|
specification_version: 3
|
95
77
|
summary: ActiveMerchant Banklink add-on (alpha version)
|
96
78
|
test_files: []
|
97
|
-
|