banklink_lv 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +45 -45
- data/README +2 -1
- data/README.rdoc +1 -0
- data/lib/banklink_lv/helper.rb +7 -3
- data/lib/banklink_lv/version.rb +1 -1
- data/pkg/banklink_lv-0.0.4.gem +0 -0
- metadata +5 -4
data/Gemfile.lock
CHANGED
@@ -1,88 +1,88 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
banklink_lv (0.0.
|
4
|
+
banklink_lv (0.0.4)
|
5
5
|
activesupport
|
6
6
|
rails
|
7
7
|
|
8
8
|
GEM
|
9
9
|
specs:
|
10
|
-
actionmailer (3.2.
|
11
|
-
actionpack (= 3.2.
|
12
|
-
mail (~> 2.
|
13
|
-
actionpack (3.2.
|
14
|
-
activemodel (= 3.2.
|
15
|
-
activesupport (= 3.2.
|
10
|
+
actionmailer (3.2.13)
|
11
|
+
actionpack (= 3.2.13)
|
12
|
+
mail (~> 2.5.3)
|
13
|
+
actionpack (3.2.13)
|
14
|
+
activemodel (= 3.2.13)
|
15
|
+
activesupport (= 3.2.13)
|
16
16
|
builder (~> 3.0.0)
|
17
17
|
erubis (~> 2.7.0)
|
18
18
|
journey (~> 1.0.4)
|
19
|
-
rack (~> 1.4.
|
19
|
+
rack (~> 1.4.5)
|
20
20
|
rack-cache (~> 1.2)
|
21
21
|
rack-test (~> 0.6.1)
|
22
|
-
sprockets (~> 2.1
|
23
|
-
activemodel (3.2.
|
24
|
-
activesupport (= 3.2.
|
22
|
+
sprockets (~> 2.2.1)
|
23
|
+
activemodel (3.2.13)
|
24
|
+
activesupport (= 3.2.13)
|
25
25
|
builder (~> 3.0.0)
|
26
|
-
activerecord (3.2.
|
27
|
-
activemodel (= 3.2.
|
28
|
-
activesupport (= 3.2.
|
26
|
+
activerecord (3.2.13)
|
27
|
+
activemodel (= 3.2.13)
|
28
|
+
activesupport (= 3.2.13)
|
29
29
|
arel (~> 3.0.2)
|
30
30
|
tzinfo (~> 0.3.29)
|
31
|
-
activeresource (3.2.
|
32
|
-
activemodel (= 3.2.
|
33
|
-
activesupport (= 3.2.
|
34
|
-
activesupport (3.2.
|
35
|
-
i18n (
|
31
|
+
activeresource (3.2.13)
|
32
|
+
activemodel (= 3.2.13)
|
33
|
+
activesupport (= 3.2.13)
|
34
|
+
activesupport (3.2.13)
|
35
|
+
i18n (= 0.6.1)
|
36
36
|
multi_json (~> 1.0)
|
37
37
|
arel (3.0.2)
|
38
|
-
builder (3.0.
|
38
|
+
builder (3.0.4)
|
39
39
|
erubis (2.7.0)
|
40
|
-
hike (1.2.
|
40
|
+
hike (1.2.2)
|
41
41
|
i18n (0.6.1)
|
42
42
|
journey (1.0.4)
|
43
|
-
json (1.
|
44
|
-
mail (2.
|
45
|
-
i18n (>= 0.4.0)
|
43
|
+
json (1.8.0)
|
44
|
+
mail (2.5.4)
|
46
45
|
mime-types (~> 1.16)
|
47
46
|
treetop (~> 1.4.8)
|
48
|
-
mime-types (1.
|
49
|
-
multi_json (1.3
|
47
|
+
mime-types (1.23)
|
48
|
+
multi_json (1.7.3)
|
50
49
|
polyglot (0.3.3)
|
51
|
-
rack (1.4.
|
50
|
+
rack (1.4.5)
|
52
51
|
rack-cache (1.2)
|
53
52
|
rack (>= 0.4)
|
54
|
-
rack-ssl (1.3.
|
53
|
+
rack-ssl (1.3.3)
|
55
54
|
rack
|
56
|
-
rack-test (0.6.
|
55
|
+
rack-test (0.6.2)
|
57
56
|
rack (>= 1.0)
|
58
|
-
rails (3.2.
|
59
|
-
actionmailer (= 3.2.
|
60
|
-
actionpack (= 3.2.
|
61
|
-
activerecord (= 3.2.
|
62
|
-
activeresource (= 3.2.
|
63
|
-
activesupport (= 3.2.
|
57
|
+
rails (3.2.13)
|
58
|
+
actionmailer (= 3.2.13)
|
59
|
+
actionpack (= 3.2.13)
|
60
|
+
activerecord (= 3.2.13)
|
61
|
+
activeresource (= 3.2.13)
|
62
|
+
activesupport (= 3.2.13)
|
64
63
|
bundler (~> 1.0)
|
65
|
-
railties (= 3.2.
|
66
|
-
railties (3.2.
|
67
|
-
actionpack (= 3.2.
|
68
|
-
activesupport (= 3.2.
|
64
|
+
railties (= 3.2.13)
|
65
|
+
railties (3.2.13)
|
66
|
+
actionpack (= 3.2.13)
|
67
|
+
activesupport (= 3.2.13)
|
69
68
|
rack-ssl (~> 1.3.2)
|
70
69
|
rake (>= 0.8.7)
|
71
70
|
rdoc (~> 3.4)
|
72
71
|
thor (>= 0.14.6, < 2.0)
|
73
72
|
rake (0.9.2.2)
|
74
|
-
rdoc (3.12)
|
73
|
+
rdoc (3.12.2)
|
75
74
|
json (~> 1.4)
|
76
|
-
sprockets (2.
|
75
|
+
sprockets (2.2.2)
|
77
76
|
hike (~> 1.2)
|
77
|
+
multi_json (~> 1.0)
|
78
78
|
rack (~> 1.0)
|
79
79
|
tilt (~> 1.1, != 1.3.0)
|
80
|
-
thor (0.
|
81
|
-
tilt (1.
|
82
|
-
treetop (1.4.
|
80
|
+
thor (0.18.1)
|
81
|
+
tilt (1.4.1)
|
82
|
+
treetop (1.4.12)
|
83
83
|
polyglot
|
84
84
|
polyglot (>= 0.3.1)
|
85
|
-
tzinfo (0.3.
|
85
|
+
tzinfo (0.3.37)
|
86
86
|
|
87
87
|
PLATFORMS
|
88
88
|
ruby
|
data/README
CHANGED
@@ -5,6 +5,7 @@ Payment system integration for Latvian banks what uses banklink API.
|
|
5
5
|
== Supported banks
|
6
6
|
|
7
7
|
Swedbank (Latvia)
|
8
|
+
Swedbank (Estonia)
|
8
9
|
|
9
10
|
== Installation
|
10
11
|
|
@@ -36,7 +37,7 @@ Helper for view:
|
|
36
37
|
options[:amount] = '0.01'
|
37
38
|
options[:currency] = 'LVL'
|
38
39
|
options[:return] = 'http://yourapp.com/'
|
39
|
-
options[:reference] = '454'
|
40
|
+
options[:reference] = '454' # Use only for Latvian Swedbank, because Estonia has special requirements. More information here - http://www.pangaliit.ee/en/settlements-and-standards/reference-number-of-the-invoice
|
40
41
|
options[:message] = 'Testing banklink'
|
41
42
|
@helper = Banklink::Helper.new(TRANS_ID, YOUR_SENDER_ID, options)
|
42
43
|
|
data/README.rdoc
CHANGED
data/lib/banklink_lv/helper.rb
CHANGED
@@ -13,8 +13,9 @@ module Banklink #:nodoc:
|
|
13
13
|
@options['VK_AMOUNT'] = options[:amount]
|
14
14
|
@options['VK_CURR'] = options[:currency]
|
15
15
|
@options['VK_RETURN'] = options[:return]
|
16
|
-
@options['VK_REF'] = options[:reference]
|
16
|
+
@options['VK_REF'] = options[:reference] || ""
|
17
17
|
@options['VK_MSG'] = options[:message]
|
18
|
+
@options['VK_LANG'] = options[:lang] if options[:lang]
|
18
19
|
|
19
20
|
if options[:service_msg_number]
|
20
21
|
@service_msg_number = options.delete(:service_msg_number)
|
@@ -54,7 +55,11 @@ module Banklink #:nodoc:
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def add_lang_field
|
57
|
-
|
58
|
+
if @options['VK_LANG']
|
59
|
+
add_field(vk_lang_param, @options['VK_LANG'])
|
60
|
+
else
|
61
|
+
add_field vk_lang_param, vk_lang
|
62
|
+
end
|
58
63
|
end
|
59
64
|
|
60
65
|
def add_charset_field
|
@@ -78,7 +83,6 @@ module Banklink #:nodoc:
|
|
78
83
|
'VK_ENCODING'
|
79
84
|
end
|
80
85
|
|
81
|
-
# Default parameters
|
82
86
|
def vk_lang
|
83
87
|
'LAT'
|
84
88
|
end
|
data/lib/banklink_lv/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: banklink_lv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- lib/banklink_lv/swedbank.rb
|
84
84
|
- lib/banklink_lv/version.rb
|
85
85
|
- pkg/banklink_lv-0.0.3.gem
|
86
|
+
- pkg/banklink_lv-0.0.4.gem
|
86
87
|
- rails/init.rb
|
87
88
|
- test/banklink_common_test.rb
|
88
89
|
- test/banklink_helper_test.rb
|
@@ -106,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
107
|
version: '0'
|
107
108
|
segments:
|
108
109
|
- 0
|
109
|
-
hash:
|
110
|
+
hash: 296864345537664305
|
110
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
112
|
none: false
|
112
113
|
requirements:
|
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
116
|
version: '0'
|
116
117
|
segments:
|
117
118
|
- 0
|
118
|
-
hash:
|
119
|
+
hash: 296864345537664305
|
119
120
|
requirements: []
|
120
121
|
rubyforge_project: banklink_lv
|
121
122
|
rubygems_version: 1.8.24
|