issuer_response_codes 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +3 -0
- data/Gemfile +0 -3
- data/Gemfile.lock +11 -9
- data/README.md +166 -10
- data/issuer_response_codes.gemspec +3 -1
- data/lib/issuer_response_codes.rb +2 -1
- data/lib/issuer_response_codes/code.rb +8 -2
- data/lib/issuer_response_codes/context.rb +4 -0
- data/lib/issuer_response_codes/locale_library.rb +5 -1
- data/lib/issuer_response_codes/tds_code.rb +26 -0
- data/lib/issuer_response_codes/version.rb +1 -1
- data/lib/locale/da.yml +149 -38
- data/lib/locale/de.yml +292 -0
- data/lib/locale/ee.yml +149 -38
- data/lib/locale/en.yml +277 -77
- data/lib/locale/it.yml +289 -0
- data/lib/locale/lt.yml +149 -38
- data/lib/locale/lv.yml +149 -38
- data/lib/locale/pl.yml +294 -76
- data/lib/locale/sv.yml +149 -38
- metadata +34 -4
- data/.byebug_history +0 -38
data/lib/locale/sv.yml
CHANGED
@@ -1,41 +1,118 @@
|
|
1
1
|
sv:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
2
|
+
tds_status_codes:
|
3
|
+
fraudulent_codes:
|
4
|
+
'09': true
|
5
|
+
'10': true
|
6
|
+
'11': true
|
7
|
+
behaviour:
|
8
|
+
unknown: 'Please contact our support team.'
|
9
|
+
'01': Please try again.
|
10
|
+
'02': Please try again using a different device.
|
11
|
+
'03': Please try again using a different device.
|
12
|
+
'04': Please use a different card or contact your card issuer.
|
13
|
+
'05': Please use a different card.
|
14
|
+
'06': Please use a different card or check the card number.
|
15
|
+
'07': Please use a different card.
|
16
|
+
'08': Please use a different card.
|
17
|
+
'09': Please use a different card or contact issuer.
|
18
|
+
'10': Please use a different card or contact issuer.
|
19
|
+
'11': Please use a different card or contact issuer.
|
20
|
+
'12': Please use a different card or contact issuer.
|
21
|
+
'13': Please use a different card or contact issuer.
|
22
|
+
'14': Please try again or use a different card.
|
23
|
+
'15': Please use a different card or contact issuer.
|
24
|
+
'16': Please use a different card or contact issuer.
|
25
|
+
'17': Please use a different card or contact issuer.
|
26
|
+
'18': Please use a different card or contact issuer.
|
27
|
+
'19': Please use a different card or contact issuer.
|
28
|
+
'20': Please use a different card.
|
29
|
+
'21': Please use a different card.
|
30
|
+
'22': Please try again or use a different card.
|
31
|
+
'23': Please use a different card or contact issuer.
|
32
|
+
'24': Please try again or use a different card.
|
33
|
+
'25': Please try again or use a different card.
|
34
|
+
'26': Please try again or use a different card.
|
35
|
+
'80': Please use a different card.
|
36
|
+
'81': Please try again or use a different card.
|
37
|
+
'82': Please use a different card.
|
38
|
+
'83': Please use a different card.
|
39
|
+
'84': Please try again or use a different card.
|
40
|
+
'85': Please use a different card.
|
41
|
+
'86': Please use a different card.
|
42
|
+
'87': Please use a different card.
|
43
|
+
'88': Please use a different card.
|
44
|
+
universal: &universal_tds_status_codes
|
45
|
+
unknown: "Unknown reason."
|
46
|
+
'01': Card authentication failed.
|
47
|
+
'02': Unknown Device.
|
48
|
+
'03': Unsupported Device.
|
49
|
+
'04': Exceeds authentication frequency limit.
|
50
|
+
'05': Expired card.
|
51
|
+
'06': Invalid card number.
|
52
|
+
'07': Invalid transaction.
|
53
|
+
'08': No Card record.
|
54
|
+
'15': Low confidence.
|
55
|
+
'16': Medium confidence.
|
56
|
+
'17': High confidence.
|
57
|
+
'18': Very High confidence.
|
58
|
+
'19': Exceeds ACS maximum challenges.
|
59
|
+
'20': Non-Payment transaction not supported.
|
60
|
+
targeted:
|
61
|
+
merchant:
|
62
|
+
<<: *universal_tds_status_codes
|
63
|
+
'09': Security failure.
|
64
|
+
'10': Stolen card.
|
65
|
+
'11': Suspected fraud.
|
66
|
+
'12': Transaction not permitted to cardholder.
|
67
|
+
'13': Cardholder not enrolled in service.
|
68
|
+
'14': Transaction timed out at the ACS.
|
69
|
+
'21': 3RI transaction not supported.
|
70
|
+
'22': ACS technical issue.
|
71
|
+
'23': Decoupled Authentication required by ACS but not requested by 3DS Requestor.
|
72
|
+
'24': 3DS Requestor Decoupled Max Expiry Time exceeded.
|
73
|
+
'25': Decoupled Authentication was provided insufficient time to authenticate cardholder. ACS will not make attempt.
|
74
|
+
'26': Authentication attempted but not performed by the cardholder.
|
75
|
+
'80': Error Connecting to ACS.
|
76
|
+
'81': ACS Timed Out.
|
77
|
+
'82': Invalid Response from ACS.
|
78
|
+
'83': System Error Response from ACS.
|
79
|
+
'84': Internal Error While Generating CAVV.
|
80
|
+
'85': VMID not eligible for requested program.
|
81
|
+
'86': Protocol Version Not Supported by ACS.
|
82
|
+
'87': Transaction is excluded from Attempts Processing (includes non- reloadable pre-paid cards and Non- Payments (NPA)).
|
83
|
+
'88': Requested program not supported by the ACS.
|
84
|
+
cardholder:
|
85
|
+
<<: *universal_tds_status_codes
|
86
|
+
'09': Card authentication failed. # Security failure
|
87
|
+
'10': Card authentication failed. # Stolen card
|
88
|
+
'11': Card authentication failed. # Suspected fraud
|
89
|
+
'12': Transaction not permitted to cardholder.
|
90
|
+
'13': Cardholder not enrolled in service.
|
91
|
+
'14': Card authentication failed.
|
92
|
+
'21': Card authentication failed.
|
93
|
+
'22': Issuer technical issue.
|
94
|
+
'23': Card authentication failed
|
95
|
+
'24': Card authentication failed
|
96
|
+
'25': Card authentication failed.
|
97
|
+
'26': Card authentication failed.
|
98
|
+
'80': Card authentication failed.
|
99
|
+
'81': Card authentication failed.
|
100
|
+
'82': Card authentication failed.
|
101
|
+
'83': Card authentication failed.
|
102
|
+
'84': Card authentication failed.
|
103
|
+
'85': Card authentication failed.
|
104
|
+
'86': Card authentication failed.
|
105
|
+
'87': Card authentication failed.
|
106
|
+
'88': Card authentication failed.
|
107
|
+
|
36
108
|
issuer_response_codes:
|
37
109
|
suggestion: 'Suggestion'
|
38
110
|
fraud_notice: 'IMPORTANT NOTICE: It is forbidden to retry transactions that ended with this code. It may be recognized as a fraud attempt!'
|
111
|
+
fraudulent_codes:
|
112
|
+
'04': true
|
113
|
+
'07': true
|
114
|
+
'41': true
|
115
|
+
'43': true
|
39
116
|
behaviour:
|
40
117
|
'00': "Vänligen försök igen senare, kontakta säljaren eller med hjälp av Espago Support Team."
|
41
118
|
'05': "Kontrollera dina kortinställningar för dessa transaktionstyper eller använd ett annat kort."
|
@@ -52,12 +129,12 @@ sv:
|
|
52
129
|
'01': "Please contact your card issuer."
|
53
130
|
'02': "Please contact your card issuer."
|
54
131
|
'03': "Please contact your card issuer and try again later."
|
55
|
-
'04': "Please contact your card issuer and try again later.
|
56
|
-
'07': "Please contact your card issuer and try again later.
|
132
|
+
'04': "Please contact your card issuer and try again later."
|
133
|
+
'07': "Please contact your card issuer and try again later."
|
57
134
|
'12': "Please contact your card issuer to get more details and try again later."
|
58
135
|
'30': "Please contact your card issuer to get more details and try again later."
|
59
|
-
'41': "Please contact your card issuer to get more details and try again later.
|
60
|
-
'43': "Please contact your card issuer to get more details and try again later.
|
136
|
+
'41': "Please contact your card issuer to get more details and try again later."
|
137
|
+
'43': "Please contact your card issuer to get more details and try again later."
|
61
138
|
'58': "Please check your card settings for those transaction types or use another card."
|
62
139
|
'59': "Please contact your card issuer to get more details and try again later."
|
63
140
|
'62': "Please contact your bank."
|
@@ -74,6 +151,40 @@ sv:
|
|
74
151
|
'E5': "Please try again later or contact your card issuer to get more details"
|
75
152
|
'R0': "Please contact your card issuer to get more details and try again later."
|
76
153
|
'R1': "Please contact your card issuer to get more details and try again later."
|
154
|
+
universal: &issuer_response_code
|
155
|
+
'00': "Ett fel inträffade. Transaktionen avvisades av Elavon på grund av att den inte stödde korttyp eller felaktiga kortdata, inget svar från emittent / bank eller inaktivt Merchant-konto."
|
156
|
+
'05': "Banken har avböjt transaktionen på grund av säkerhetskontroll (använt kort stöder inte återkommande betalningar eller betalning utan CVV-kod), pengarna har frusits eller gränsöverskridits eller kortet stöder inte MOTO / internet-transaktioner."
|
157
|
+
'13': "MOTO / eCommerce betalningar på kortet är inaktiva eller beloppet överskrider."
|
158
|
+
'14': "Ogiltigt kortnummer."
|
159
|
+
'N7': "Negativa CVV / CVC resultat."
|
160
|
+
'51': "Otillräckliga medel."
|
161
|
+
'54': "Utgånget kort."
|
162
|
+
'57': "Banken har avböjt transaktionen eftersom detta kreditkort inte kan användas för denna typ av transaktion (e-handel, MOTO eller återkommande)."
|
163
|
+
'61': "Banken har avböjt transaktionen."
|
164
|
+
'82': "Negativa CVV / CVC resultat."
|
165
|
+
# incomplete translations
|
166
|
+
unknown: "Unknown reason."
|
167
|
+
'01': "Authorization Error."
|
168
|
+
'02': "Authorization Error."
|
169
|
+
'03': "Authorization Error."
|
170
|
+
'12': "No privileges to execute this transaction for your card."
|
171
|
+
'30': "Your bank has declined this transaction"
|
172
|
+
'58': "Your bank has declined this transaction as this credit card cannot be used for this type of transaction (eccommerce, MOTO or recurring)."
|
173
|
+
'59': "Your bank has declined this transaction"
|
174
|
+
'62': "Your card can be not supported due to restrictions placed on the card or Seller country exclusion (imposition an embargo), or bank blocked a card eg. due to unacceptable debit balance."
|
175
|
+
'65': "Activity count limit exceeded."
|
176
|
+
'75': "Invalid activity count limit exceeded."
|
177
|
+
'78': "Inactive card."
|
178
|
+
'91': "Temporary issuer error."
|
179
|
+
'92': "Temporary issuer error."
|
180
|
+
'94': "Temporary issuer error."
|
181
|
+
'96': "Temporary issuer error."
|
182
|
+
'98': "Temporary issuer error."
|
183
|
+
'E3': "Transaction not executed due to a 3D-Secure error."
|
184
|
+
'E4': "Transaction not executed due to a negative 3D-Secure confirmation from your bank."
|
185
|
+
'E5': "Temporary 3D-Secure error."
|
186
|
+
'R0': "Refused by Issuer because Customer requested stop of specific recurring payments."
|
187
|
+
'R1': "Refused by Issuer because Customer requested stop of all recurring payments."
|
77
188
|
targeted:
|
78
189
|
merchant:
|
79
190
|
<<: *issuer_response_code
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: issuer_response_codes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Espago
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -53,6 +53,34 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: minitest
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '5.0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '5.0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rake
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '12.0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '12.0'
|
56
84
|
- !ruby/object:Gem::Dependency
|
57
85
|
name: rubocop
|
58
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,7 +117,6 @@ executables: []
|
|
89
117
|
extensions: []
|
90
118
|
extra_rdoc_files: []
|
91
119
|
files:
|
92
|
-
- ".byebug_history"
|
93
120
|
- ".gitignore"
|
94
121
|
- ".rubocop.yml"
|
95
122
|
- ".ruby-version"
|
@@ -109,10 +136,13 @@ files:
|
|
109
136
|
- lib/issuer_response_codes/code.rb
|
110
137
|
- lib/issuer_response_codes/context.rb
|
111
138
|
- lib/issuer_response_codes/locale_library.rb
|
139
|
+
- lib/issuer_response_codes/tds_code.rb
|
112
140
|
- lib/issuer_response_codes/version.rb
|
113
141
|
- lib/locale/da.yml
|
142
|
+
- lib/locale/de.yml
|
114
143
|
- lib/locale/ee.yml
|
115
144
|
- lib/locale/en.yml
|
145
|
+
- lib/locale/it.yml
|
116
146
|
- lib/locale/lt.yml
|
117
147
|
- lib/locale/lv.yml
|
118
148
|
- lib/locale/pl.yml
|
@@ -131,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
161
|
requirements:
|
132
162
|
- - ">="
|
133
163
|
- !ruby/object:Gem::Version
|
134
|
-
version: '2.
|
164
|
+
version: '2.5'
|
135
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
166
|
requirements:
|
137
167
|
- - ">="
|
data/.byebug_history
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
c
|
2
|
-
scope.empty?
|
3
|
-
scope
|
4
|
-
path
|
5
|
-
scope
|
6
|
-
default_path_array
|
7
|
-
default
|
8
|
-
exit
|
9
|
-
c
|
10
|
-
locale_hash.dig(*[:issuer_response_codes, :targeted, :merchant, :"04"])
|
11
|
-
locale_hash.dig()
|
12
|
-
full_path_array
|
13
|
-
result
|
14
|
-
c
|
15
|
-
IssuerResponseCodes::LOCALE_LIBRARY.locale[:da]
|
16
|
-
IssuerResponseCodes::LOCALE_LIBRARY.locale
|
17
|
-
IssuerResponseCodes::LOCALE_LIBRARY
|
18
|
-
c
|
19
|
-
hash
|
20
|
-
c
|
21
|
-
hash
|
22
|
-
c
|
23
|
-
exit
|
24
|
-
c
|
25
|
-
name
|
26
|
-
::YAML.load_file("lib/locale/#{name}.yml")
|
27
|
-
c
|
28
|
-
hash
|
29
|
-
exit
|
30
|
-
c
|
31
|
-
locale_hash.symbolize_keys
|
32
|
-
locale_hash
|
33
|
-
exit
|
34
|
-
IssuerResponseCodes::LOCALE_LIBRARY
|
35
|
-
LOCALE_LIBRARY
|
36
|
-
c
|
37
|
-
YAML.load_file('lib/locale/da.yml')
|
38
|
-
YAML.load_file('locale/da.yml')
|