ruby-saferpay 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +2 -2
- data/lib/log/ruby-saferpay.log +487 -0
- data/lib/ruby-saferpay.rb +80 -13
- data/lib/ruby-saferpay/version.rb +1 -1
- data/test/test_ruby-saferpay.rb +20 -10
- metadata +3 -3
data/Manifest.txt
CHANGED
@@ -0,0 +1,487 @@
|
|
1
|
+
[ruby-saferpay, 2007-08-21 12:23:27, DEBUG] :: Class.setup_account Will configure account in: "/opt/saferpay/confs/conf_for_44_43"
|
2
|
+
[ruby-saferpay, 2007-08-21 12:28:47, DEBUG] :: Class.setup_account Will configure account in: "/opt/saferpay/confs/conf_for_44_43"
|
3
|
+
[ruby-saferpay, 2007-08-21 12:30:02, DEBUG] :: Class.setup_account Will configure account in: "/opt/saferpay/confs/conf_for_44_43"
|
4
|
+
[ruby-saferpay, 2007-08-21 12:33:38, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
5
|
+
[ruby-saferpay, 2007-08-21 12:35:52, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
6
|
+
[ruby-saferpay, 2007-08-21 12:38:14, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
7
|
+
[ruby-saferpay, 2007-08-21 12:56:10, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
8
|
+
[ruby-saferpay, 2007-08-21 12:56:10, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_44_43 --server-url https://www.saferpay.com/user/setup.asp --username 44 --password 434"
|
9
|
+
[ruby-saferpay, 2007-08-21 12:58:01, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
10
|
+
[ruby-saferpay, 2007-08-21 13:06:16, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
11
|
+
[ruby-saferpay, 2007-08-21 13:07:31, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
12
|
+
[ruby-saferpay, 2007-08-21 13:07:31, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_44_43 --server-url https://www.saferpay.com/user/setup.asp --username 44 --password 434"
|
13
|
+
[ruby-saferpay, 2007-08-21 13:12:38, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
14
|
+
[ruby-saferpay, 2007-08-21 13:15:36, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
15
|
+
[ruby-saferpay, 2007-08-21 13:15:52, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
16
|
+
[ruby-saferpay, 2007-08-21 13:21:08, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
17
|
+
[ruby-saferpay, 2007-08-21 13:21:24, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
18
|
+
[ruby-saferpay, 2007-08-21 13:22:25, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
19
|
+
[ruby-saferpay, 2007-08-21 13:22:25, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_44_43 --serverurl https://www.saferpay.com/user/setup.asp --username 44 --password 434"
|
20
|
+
[ruby-saferpay, 2007-08-21 13:22:26, ERROR] :: Class.setup_account FAILED
|
21
|
+
Error status: #<Process::Status: pid=4084,exited(19)>
|
22
|
+
Command:/opt/saferpay/saferpay -conf --path ./config/conf_for_44_43 --serverurl https://www.saferpay.com/user/setup.asp --username 44 --password 434
|
23
|
+
Command result: [saferpay] ERROR: 0x80040213 (the request failed)
|
24
|
+
|
25
|
+
[ruby-saferpay, 2007-08-21 13:22:44, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_44_43"
|
26
|
+
[ruby-saferpay, 2007-08-21 13:22:44, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_44_43 --serverurl https://www.saferpay.com/user/setup.asp --username 44 --password 434"
|
27
|
+
[ruby-saferpay, 2007-08-21 13:22:44, ERROR] :: Class.setup_account FAILED
|
28
|
+
Error status: #<Process::Status: pid=4086,exited(19)>
|
29
|
+
Command:/opt/saferpay/saferpay -conf --path ./config/conf_for_44_43 --serverurl https://www.saferpay.com/user/setup.asp --username 44 --password 434
|
30
|
+
Command result: [saferpay] ERROR: 0x80040213 (the request failed)
|
31
|
+
|
32
|
+
[ruby-saferpay, 2007-08-21 13:24:23, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_t998673444_99867-94913159"
|
33
|
+
[ruby-saferpay, 2007-08-21 13:24:23, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_t998673444_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673444 --password jTMam9S7"
|
34
|
+
[ruby-saferpay, 2007-08-21 13:25:03, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_t998673384_99867-94913159"
|
35
|
+
[ruby-saferpay, 2007-08-21 13:25:03, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_t998673384_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
36
|
+
[ruby-saferpay, 2007-08-21 13:48:19, ERROR] :: Saferpay#do_direct_cc FAILED
|
37
|
+
Error status: #<Process::Status: pid=4111,exited(14)>
|
38
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/ -m Authorization -a EXP 1107 -a PAN 9451123100000004 -a ACCOUNTID 99867-94913159 -a AMOUNT 300 -a CURRENCY EUR
|
39
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
40
|
+
|
41
|
+
[ruby-saferpay, 2007-08-21 14:10:37, ERROR] :: Saferpay#do_direct_cc FAILED
|
42
|
+
Error status: #<Process::Status: pid=4134,exited(2)>
|
43
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 600 -a CURRENCY EUR
|
44
|
+
Command result: ERROR: 00000002
|
45
|
+
|
46
|
+
[ruby-saferpay, 2007-08-21 14:10:37, ERROR] :: Saferpay#do_direct_cc FAILED
|
47
|
+
Error status: #<Process::Status: pid=4138,exited(2)>
|
48
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 600 -a CURRENCY EUR
|
49
|
+
Command result: ERROR: 00000002
|
50
|
+
|
51
|
+
[ruby-saferpay, 2007-08-21 14:10:37, ERROR] :: Saferpay#do_direct_cc FAILED
|
52
|
+
Error status: #<Process::Status: pid=4142,exited(2)>
|
53
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR
|
54
|
+
Command result: ERROR: 00000002
|
55
|
+
|
56
|
+
[ruby-saferpay, 2007-08-21 14:10:37, ERROR] :: Saferpay#do_direct_cc FAILED
|
57
|
+
Error status: #<Process::Status: pid=4146,exited(2)>
|
58
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 3000 -a CURRENCY USD
|
59
|
+
Command result: ERROR: 00000002
|
60
|
+
|
61
|
+
[ruby-saferpay, 2007-08-21 14:10:37, ERROR] :: Saferpay#do_direct_cc FAILED
|
62
|
+
Error status: #<Process::Status: pid=4156,exited(2)>
|
63
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 4000 -a CURRENCY EUR
|
64
|
+
Command result: ERROR: 00000002
|
65
|
+
|
66
|
+
[ruby-saferpay, 2007-08-21 14:10:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
67
|
+
Error status: #<Process::Status: pid=4160,exited(2)>
|
68
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 350 -a CURRENCY CHF
|
69
|
+
Command result: ERROR: 00000002
|
70
|
+
|
71
|
+
[ruby-saferpay, 2007-08-21 14:10:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
72
|
+
Error status: #<Process::Status: pid=4164,exited(2)>
|
73
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 1000 -a CURRENCY USD
|
74
|
+
Command result: ERROR: 00000002
|
75
|
+
|
76
|
+
[ruby-saferpay, 2007-08-21 14:10:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
77
|
+
Error status: #<Process::Status: pid=4168,exited(2)>
|
78
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 6666 -a CURRENCY EUR
|
79
|
+
Command result: ERROR: 00000002
|
80
|
+
|
81
|
+
[ruby-saferpay, 2007-08-21 14:10:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
82
|
+
Error status: #<Process::Status: pid=4172,exited(2)>
|
83
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 10 -a ACTION Debit -a CURRENCY EUR
|
84
|
+
Command result: ERROR: 00000002
|
85
|
+
|
86
|
+
[ruby-saferpay, 2007-08-21 14:10:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
87
|
+
Error status: #<Process::Status: pid=4176,exited(2)>
|
88
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
89
|
+
Command result: ERROR: 00000002
|
90
|
+
|
91
|
+
[ruby-saferpay, 2007-08-21 14:10:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
92
|
+
Error status: #<Process::Status: pid=4182,exited(2)>
|
93
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY SEK
|
94
|
+
Command result: ERROR: 00000002
|
95
|
+
|
96
|
+
[ruby-saferpay, 2007-08-21 14:13:31, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_t998673384_99867-94913159"
|
97
|
+
[ruby-saferpay, 2007-08-21 14:13:31, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_t998673384_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
98
|
+
[ruby-saferpay, 2007-08-21 14:15:21, DEBUG] :: Class.setup_account Will configure account in: "./config/conf_for_99867-94913159"
|
99
|
+
[ruby-saferpay, 2007-08-21 14:15:21, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path ./config/conf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
100
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
101
|
+
Error status: #<Process::Status: pid=4214,exited(2)>
|
102
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 600 -a CURRENCY EUR
|
103
|
+
Command result: ERROR: 00000002
|
104
|
+
|
105
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
106
|
+
Error status: #<Process::Status: pid=4218,exited(2)>
|
107
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 600 -a CURRENCY EUR
|
108
|
+
Command result: ERROR: 00000002
|
109
|
+
|
110
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
111
|
+
Error status: #<Process::Status: pid=4222,exited(2)>
|
112
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR
|
113
|
+
Command result: ERROR: 00000002
|
114
|
+
|
115
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
116
|
+
Error status: #<Process::Status: pid=4226,exited(2)>
|
117
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 3000 -a CURRENCY USD
|
118
|
+
Command result: ERROR: 00000002
|
119
|
+
|
120
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
121
|
+
Error status: #<Process::Status: pid=4236,exited(2)>
|
122
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 4000 -a CURRENCY EUR
|
123
|
+
Command result: ERROR: 00000002
|
124
|
+
|
125
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
126
|
+
Error status: #<Process::Status: pid=4240,exited(2)>
|
127
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 350 -a CURRENCY CHF
|
128
|
+
Command result: ERROR: 00000002
|
129
|
+
|
130
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
131
|
+
Error status: #<Process::Status: pid=4244,exited(2)>
|
132
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 1000 -a CURRENCY USD
|
133
|
+
Command result: ERROR: 00000002
|
134
|
+
|
135
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
136
|
+
Error status: #<Process::Status: pid=4248,exited(2)>
|
137
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 6666 -a CURRENCY EUR
|
138
|
+
Command result: ERROR: 00000002
|
139
|
+
|
140
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
141
|
+
Error status: #<Process::Status: pid=4252,exited(2)>
|
142
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 10 -a ACTION Debit -a CURRENCY EUR
|
143
|
+
Command result: ERROR: 00000002
|
144
|
+
|
145
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
146
|
+
Error status: #<Process::Status: pid=4256,exited(2)>
|
147
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
148
|
+
Command result: ERROR: 00000002
|
149
|
+
|
150
|
+
[ruby-saferpay, 2007-08-21 14:15:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
151
|
+
Error status: #<Process::Status: pid=4262,exited(2)>
|
152
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY SEK
|
153
|
+
Command result: ERROR: 00000002
|
154
|
+
|
155
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
156
|
+
Error status: #<Process::Status: pid=4274,exited(2)>
|
157
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 600 -a CURRENCY EUR
|
158
|
+
Command result: ERROR: 00000002
|
159
|
+
|
160
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
161
|
+
Error status: #<Process::Status: pid=4278,exited(2)>
|
162
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 600 -a CURRENCY EUR
|
163
|
+
Command result: ERROR: 00000002
|
164
|
+
|
165
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
166
|
+
Error status: #<Process::Status: pid=4282,exited(2)>
|
167
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR
|
168
|
+
Command result: ERROR: 00000002
|
169
|
+
|
170
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
171
|
+
Error status: #<Process::Status: pid=4286,exited(2)>
|
172
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 3000 -a CURRENCY USD
|
173
|
+
Command result: ERROR: 00000002
|
174
|
+
|
175
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
176
|
+
Error status: #<Process::Status: pid=4296,exited(2)>
|
177
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 4000 -a CURRENCY EUR
|
178
|
+
Command result: ERROR: 00000002
|
179
|
+
|
180
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
181
|
+
Error status: #<Process::Status: pid=4300,exited(2)>
|
182
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 350 -a CURRENCY CHF
|
183
|
+
Command result: ERROR: 00000002
|
184
|
+
|
185
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
186
|
+
Error status: #<Process::Status: pid=4304,exited(2)>
|
187
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 1000 -a CURRENCY USD
|
188
|
+
Command result: ERROR: 00000002
|
189
|
+
|
190
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
191
|
+
Error status: #<Process::Status: pid=4308,exited(2)>
|
192
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 6666 -a CURRENCY EUR
|
193
|
+
Command result: ERROR: 00000002
|
194
|
+
|
195
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
196
|
+
Error status: #<Process::Status: pid=4312,exited(2)>
|
197
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 10 -a ACTION Debit -a CURRENCY EUR
|
198
|
+
Command result: ERROR: 00000002
|
199
|
+
|
200
|
+
[ruby-saferpay, 2007-08-21 14:16:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
201
|
+
Error status: #<Process::Status: pid=4316,exited(2)>
|
202
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
203
|
+
Command result: ERROR: 00000002
|
204
|
+
|
205
|
+
[ruby-saferpay, 2007-08-21 14:16:11, ERROR] :: Saferpay#do_direct_cc FAILED
|
206
|
+
Error status: #<Process::Status: pid=4322,exited(2)>
|
207
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY SEK
|
208
|
+
Command result: ERROR: 00000002
|
209
|
+
|
210
|
+
[ruby-saferpay, 2007-08-21 14:18:57, ERROR] :: Saferpay#do_direct_cc FAILED
|
211
|
+
Error status: #<Process::Status: pid=4340,exited(2)>
|
212
|
+
Command:/opt/saferpay/saferpay -exec -p ./config/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 1107 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
213
|
+
Command result: ERROR: 00000002
|
214
|
+
|
215
|
+
[ruby-saferpay, 2007-08-21 14:22:06, ERROR] :: Saferpay#do_direct_cc FAILED
|
216
|
+
Error status: #<Process::Status: pid=4364,exited(0)>
|
217
|
+
Command:/opt/saferpay/saferpay -exec -p lib/config/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 3233 -a PAN 9451123100000004 -a AMOUNT 12345 -a CURRENCY EUR
|
218
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
219
|
+
[ruby-saferpay, 2007-08-21 14:41:16, ERROR] :: Saferpay#do_direct_cc FAILED
|
220
|
+
Error status: #<Process::Status: pid=4471,exited(0)>
|
221
|
+
Command:/opt/saferpay/saferpay -exec -p lib/config/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 3233 -a PAN 9451123100000004 -a AMOUNT 12345 -a CURRENCY EUR
|
222
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
223
|
+
[ruby-saferpay, 2007-08-21 14:42:33, ERROR] :: Saferpay#do_direct_cc FAILED
|
224
|
+
Error status: #<Process::Status: pid=4486,exited(2)>
|
225
|
+
Command:/opt/saferpay/saferpay -exec -p config/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 1107 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
226
|
+
Command result: ERROR: 00000002
|
227
|
+
|
228
|
+
[ruby-saferpay, 2007-08-21 15:17:55, DEBUG] :: Class.setup_account Will configure account in: "lib/confconf_for_99867-94913159"
|
229
|
+
[ruby-saferpay, 2007-08-21 15:18:42, DEBUG] :: Class.setup_account Will configure account in: "lib/confconf_for_99867-94913159"
|
230
|
+
[ruby-saferpay, 2007-08-21 15:18:42, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path lib/confconf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
231
|
+
[ruby-saferpay, 2007-08-21 15:18:50, DEBUG] :: Class.setup_account Will configure account in: "lib/confconf_for_99867-94913159"
|
232
|
+
[ruby-saferpay, 2007-08-21 15:19:35, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
233
|
+
[ruby-saferpay, 2007-08-21 15:19:35, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path lib/conf/conf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
234
|
+
[ruby-saferpay, 2007-08-21 15:20:11, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
235
|
+
[ruby-saferpay, 2007-08-21 15:20:11, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
236
|
+
[ruby-saferpay, 2007-08-21 15:20:11, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path lib/conf/conf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
237
|
+
[ruby-saferpay, 2007-08-21 15:21:30, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
238
|
+
[ruby-saferpay, 2007-08-21 15:21:30, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
239
|
+
[ruby-saferpay, 2007-08-21 15:21:30, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path lib/conf/conf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
240
|
+
[ruby-saferpay, 2007-08-21 15:22:46, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
241
|
+
[ruby-saferpay, 2007-08-21 15:22:46, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
242
|
+
[ruby-saferpay, 2007-08-21 15:22:46, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path lib/conf/conf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
243
|
+
[ruby-saferpay, 2007-08-21 15:23:09, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
244
|
+
[ruby-saferpay, 2007-08-21 15:23:09, ERROR] :: Saferpay#do_direct_cc FAILED
|
245
|
+
Error status: #<Process::Status: pid=4602,exited(14)>
|
246
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 600 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
247
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
248
|
+
|
249
|
+
[ruby-saferpay, 2007-08-21 15:23:09, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
250
|
+
[ruby-saferpay, 2007-08-21 15:23:09, ERROR] :: Saferpay#do_direct_cc FAILED
|
251
|
+
Error status: #<Process::Status: pid=4606,exited(14)>
|
252
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 600 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
253
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
254
|
+
|
255
|
+
[ruby-saferpay, 2007-08-21 15:23:09, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
256
|
+
[ruby-saferpay, 2007-08-21 15:23:09, ERROR] :: Saferpay#do_direct_cc FAILED
|
257
|
+
Error status: #<Process::Status: pid=4610,exited(14)>
|
258
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
259
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
260
|
+
|
261
|
+
[ruby-saferpay, 2007-08-21 15:23:09, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
262
|
+
[ruby-saferpay, 2007-08-21 15:23:09, ERROR] :: Saferpay#do_direct_cc FAILED
|
263
|
+
Error status: #<Process::Status: pid=4614,exited(14)>
|
264
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 3000 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
265
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
266
|
+
|
267
|
+
[ruby-saferpay, 2007-08-21 15:23:09, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
268
|
+
[ruby-saferpay, 2007-08-21 15:23:09, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
269
|
+
[ruby-saferpay, 2007-08-21 15:23:09, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path lib/conf/conf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
270
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
271
|
+
[ruby-saferpay, 2007-08-21 15:23:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
272
|
+
Error status: #<Process::Status: pid=4626,exited(14)>
|
273
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 4000 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
274
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
275
|
+
|
276
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
277
|
+
[ruby-saferpay, 2007-08-21 15:23:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
278
|
+
Error status: #<Process::Status: pid=4630,exited(14)>
|
279
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 350 -a EXP 1107 -a CURRENCY CHF -a ACCOUNTID 99867-94913159
|
280
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
281
|
+
|
282
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
283
|
+
[ruby-saferpay, 2007-08-21 15:23:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
284
|
+
Error status: #<Process::Status: pid=4634,exited(14)>
|
285
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 1000 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
286
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
287
|
+
|
288
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
289
|
+
[ruby-saferpay, 2007-08-21 15:23:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
290
|
+
Error status: #<Process::Status: pid=4638,exited(14)>
|
291
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 6666 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
292
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
293
|
+
|
294
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
295
|
+
[ruby-saferpay, 2007-08-21 15:23:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
296
|
+
Error status: #<Process::Status: pid=4642,exited(14)>
|
297
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 10 -a ACTION Debit -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
298
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
299
|
+
|
300
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
301
|
+
[ruby-saferpay, 2007-08-21 15:23:10, ERROR] :: Saferpay#do_direct_cc FAILED
|
302
|
+
Error status: #<Process::Status: pid=4646,exited(14)>
|
303
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 300 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
304
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
305
|
+
|
306
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
307
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Will configure account in: "lib/conf/conf_for_99867-94913159"
|
308
|
+
[ruby-saferpay, 2007-08-21 15:23:10, DEBUG] :: Class.setup_account Configuration command: "/opt/saferpay/saferpay -conf --path lib/conf/conf_for_99867-94913159 --serverurl https://www.saferpay.com/user/setup.asp --username t998673384 --password F6WhdaXZ"
|
309
|
+
[ruby-saferpay, 2007-08-21 15:23:12, ERROR] :: Saferpay#do_direct_cc FAILED
|
310
|
+
Error status: #<Process::Status: pid=4654,exited(0)>
|
311
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 300 -a EXP 1107 -a CURRENCY SEK -a ACCOUNTID 99867-94913159
|
312
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
313
|
+
[ruby-saferpay, 2007-08-21 15:24:58, ERROR] :: Saferpay#do_direct_cc FAILED
|
314
|
+
Error status: #<Process::Status: pid=4665,exited(14)>
|
315
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 600 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
316
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
317
|
+
|
318
|
+
[ruby-saferpay, 2007-08-21 15:24:58, ERROR] :: Saferpay#do_direct_cc FAILED
|
319
|
+
Error status: #<Process::Status: pid=4669,exited(14)>
|
320
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 600 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
321
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
322
|
+
|
323
|
+
[ruby-saferpay, 2007-08-21 15:24:58, ERROR] :: Saferpay#do_direct_cc FAILED
|
324
|
+
Error status: #<Process::Status: pid=4673,exited(14)>
|
325
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
326
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
327
|
+
|
328
|
+
[ruby-saferpay, 2007-08-21 15:24:58, ERROR] :: Saferpay#do_direct_cc FAILED
|
329
|
+
Error status: #<Process::Status: pid=4677,exited(14)>
|
330
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 3000 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
331
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
332
|
+
|
333
|
+
[ruby-saferpay, 2007-08-21 15:24:59, ERROR] :: Saferpay#do_direct_cc FAILED
|
334
|
+
Error status: #<Process::Status: pid=4689,exited(14)>
|
335
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 4000 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
336
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
337
|
+
|
338
|
+
[ruby-saferpay, 2007-08-21 15:24:59, ERROR] :: Saferpay#do_direct_cc FAILED
|
339
|
+
Error status: #<Process::Status: pid=4693,exited(14)>
|
340
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 350 -a EXP 1107 -a CURRENCY CHF -a ACCOUNTID 99867-94913159
|
341
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
342
|
+
|
343
|
+
[ruby-saferpay, 2007-08-21 15:24:59, ERROR] :: Saferpay#do_direct_cc FAILED
|
344
|
+
Error status: #<Process::Status: pid=4697,exited(14)>
|
345
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 1000 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
346
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
347
|
+
|
348
|
+
[ruby-saferpay, 2007-08-21 15:24:59, ERROR] :: Saferpay#do_direct_cc FAILED
|
349
|
+
Error status: #<Process::Status: pid=4701,exited(14)>
|
350
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 6666 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
351
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
352
|
+
|
353
|
+
[ruby-saferpay, 2007-08-21 15:25:00, ERROR] :: Saferpay#do_direct_cc FAILED
|
354
|
+
Error status: #<Process::Status: pid=4705,exited(14)>
|
355
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 10 -a ACTION Debit -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
356
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
357
|
+
|
358
|
+
[ruby-saferpay, 2007-08-21 15:25:00, ERROR] :: Saferpay#do_direct_cc FAILED
|
359
|
+
Error status: #<Process::Status: pid=4709,exited(14)>
|
360
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 300 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
361
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
362
|
+
|
363
|
+
[ruby-saferpay, 2007-08-21 15:25:01, ERROR] :: Saferpay#do_direct_cc FAILED
|
364
|
+
Error status: #<Process::Status: pid=4717,exited(0)>
|
365
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 300 -a EXP 1107 -a CURRENCY SEK -a ACCOUNTID 99867-94913159
|
366
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
367
|
+
[ruby-saferpay, 2007-08-21 15:26:42, ERROR] :: Saferpay#do_direct_cc FAILED
|
368
|
+
Error status: #<Process::Status: pid=4731,exited(14)>
|
369
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 600 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
370
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
371
|
+
|
372
|
+
[ruby-saferpay, 2007-08-21 15:26:42, ERROR] :: Saferpay#do_direct_cc FAILED
|
373
|
+
Error status: #<Process::Status: pid=4735,exited(14)>
|
374
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 600 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
375
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
376
|
+
|
377
|
+
[ruby-saferpay, 2007-08-21 15:26:42, ERROR] :: Saferpay#do_direct_cc FAILED
|
378
|
+
Error status: #<Process::Status: pid=4739,exited(14)>
|
379
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
380
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
381
|
+
|
382
|
+
[ruby-saferpay, 2007-08-21 15:26:42, ERROR] :: Saferpay#do_direct_cc FAILED
|
383
|
+
Error status: #<Process::Status: pid=4743,exited(14)>
|
384
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 3000 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
385
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
386
|
+
|
387
|
+
[ruby-saferpay, 2007-08-21 15:26:43, ERROR] :: Saferpay#do_direct_cc FAILED
|
388
|
+
Error status: #<Process::Status: pid=4755,exited(14)>
|
389
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 4000 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
390
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
391
|
+
|
392
|
+
[ruby-saferpay, 2007-08-21 15:26:44, ERROR] :: Saferpay#do_direct_cc FAILED
|
393
|
+
Error status: #<Process::Status: pid=4759,exited(14)>
|
394
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 350 -a EXP 1107 -a CURRENCY CHF -a ACCOUNTID 99867-94913159
|
395
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
396
|
+
|
397
|
+
[ruby-saferpay, 2007-08-21 15:26:44, ERROR] :: Saferpay#do_direct_cc FAILED
|
398
|
+
Error status: #<Process::Status: pid=4763,exited(14)>
|
399
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 1000 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
400
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
401
|
+
|
402
|
+
[ruby-saferpay, 2007-08-21 15:26:44, ERROR] :: Saferpay#do_direct_cc FAILED
|
403
|
+
Error status: #<Process::Status: pid=4767,exited(14)>
|
404
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 6666 -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
405
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
406
|
+
|
407
|
+
[ruby-saferpay, 2007-08-21 15:26:44, ERROR] :: Saferpay#do_direct_cc FAILED
|
408
|
+
Error status: #<Process::Status: pid=4771,exited(14)>
|
409
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 10 -a ACTION Debit -a EXP 1107 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
410
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
411
|
+
|
412
|
+
[ruby-saferpay, 2007-08-21 15:26:44, ERROR] :: Saferpay#do_direct_cc FAILED
|
413
|
+
Error status: #<Process::Status: pid=4775,exited(14)>
|
414
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 300 -a EXP 1107 -a CURRENCY USD -a ACCOUNTID 99867-94913159
|
415
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
416
|
+
|
417
|
+
[ruby-saferpay, 2007-08-21 15:26:45, ERROR] :: Saferpay#do_direct_cc FAILED
|
418
|
+
Error status: #<Process::Status: pid=4783,exited(0)>
|
419
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a AMOUNT 300 -a EXP 1107 -a CURRENCY SEK -a ACCOUNTID 99867-94913159
|
420
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
421
|
+
[ruby-saferpay, 2007-08-21 15:27:07, ERROR] :: Saferpay#do_direct_cc FAILED
|
422
|
+
Error status: #<Process::Status: pid=4801,exited(14)>
|
423
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
424
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
425
|
+
|
426
|
+
[ruby-saferpay, 2007-08-21 15:30:15, ERROR] :: Saferpay#do_direct_cc FAILED
|
427
|
+
Error status: #<Process::Status: pid=4830,exited(14)>
|
428
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
429
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
430
|
+
|
431
|
+
[ruby-saferpay, 2007-08-21 15:31:09, ERROR] :: Saferpay#do_direct_cc FAILED
|
432
|
+
Error status: #<Process::Status: pid=4854,exited(14)>
|
433
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY USD
|
434
|
+
Command result: [saferpay] ERROR: 0x8004020E (no key identifier specified)
|
435
|
+
|
436
|
+
[ruby-saferpay, 2007-08-21 15:34:37, ERROR] :: Saferpay#do_direct_cc FAILED
|
437
|
+
Error status: #<Process::Status: pid=4942,exited(0)>
|
438
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a EXP 3233 -a PAN 9451123100000004 -a AMOUNT 12345 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
439
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
440
|
+
[ruby-saferpay, 2007-08-21 15:36:22, ERROR] :: Saferpay#do_direct_cc FAILED
|
441
|
+
Error status: #<Process::Status: pid=4964,exited(0)>
|
442
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 3233 -a PAN 9451123100000004 -a AMOUNT 12345 -a CURRENCY EUR
|
443
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
444
|
+
[ruby-saferpay, 2007-08-21 15:37:37, ERROR] :: Saferpay#do_direct_cc FAILED
|
445
|
+
Error status: #<Process::Status: pid=4986,exited(0)>
|
446
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 3233 -a PAN 9451123100000004 -a AMOUNT 12345 -a CURRENCY EUR
|
447
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
448
|
+
[ruby-saferpay, 2007-08-21 15:37:49, ERROR] :: Saferpay#do_direct_cc FAILED
|
449
|
+
Error status: #<Process::Status: pid=5014,exited(0)>
|
450
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a CURRENCY EUR -a EXP 3233 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 12345
|
451
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
452
|
+
[ruby-saferpay, 2007-08-21 15:37:50, ERROR] :: Saferpay#do_direct_cc FAILED
|
453
|
+
Error status: #<Process::Status: pid=5020,exited(0)>
|
454
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a CURRENCY SEK -a EXP 1107 -a ACCOUNTID 99867-94913159 -a PAN 9451123100000004 -a AMOUNT 300
|
455
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
456
|
+
[ruby-saferpay, 2007-08-21 15:37:58, ERROR] :: Saferpay#do_direct_cc FAILED
|
457
|
+
Error status: #<Process::Status: pid=5049,exited(0)>
|
458
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a EXP 3233 -a AMOUNT 12345 -a CURRENCY EUR -a ACCOUNTID 99867-94913159
|
459
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
460
|
+
[ruby-saferpay, 2007-08-21 15:37:59, ERROR] :: Saferpay#do_direct_cc FAILED
|
461
|
+
Error status: #<Process::Status: pid=5055,exited(0)>
|
462
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a PAN 9451123100000004 -a EXP 1107 -a AMOUNT 300 -a CURRENCY SEK -a ACCOUNTID 99867-94913159
|
463
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
464
|
+
[ruby-saferpay, 2007-08-21 15:38:14, ERROR] :: Saferpay#do_direct_cc FAILED
|
465
|
+
Error status: #<Process::Status: pid=5081,exited(0)>
|
466
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR
|
467
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
468
|
+
[ruby-saferpay, 2007-08-21 15:38:23, ERROR] :: Saferpay#do_direct_cc FAILED
|
469
|
+
Error status: #<Process::Status: pid=5146,exited(0)>
|
470
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 3233 -a PAN 9451123100000004 -a AMOUNT 12345 -a CURRENCY EUR
|
471
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
472
|
+
[ruby-saferpay, 2007-08-21 15:38:23, ERROR] :: Saferpay#do_direct_cc FAILED
|
473
|
+
Error status: #<Process::Status: pid=5152,exited(0)>
|
474
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 1107 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY SEK
|
475
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
476
|
+
[ruby-saferpay, 2007-08-21 16:46:29, ERROR] :: Saferpay#do_direct_cc FAILED
|
477
|
+
Error status: #<Process::Status: pid=5321,exited(0)>
|
478
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a AMOUNT 100200 -a TRACK2 ";5912345678=1234567890" -a CURRENCY EUR
|
479
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
480
|
+
[ruby-saferpay, 2007-08-21 16:46:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
481
|
+
Error status: #<Process::Status: pid=5386,exited(0)>
|
482
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 3233 -a PAN 9451123100000004 -a AMOUNT 12345 -a CURRENCY EUR
|
483
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="invalid expiration date ';9451123100000004=3332?0'" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="61"/>
|
484
|
+
[ruby-saferpay, 2007-08-21 16:46:38, ERROR] :: Saferpay#do_direct_cc FAILED
|
485
|
+
Error status: #<Process::Status: pid=5392,exited(0)>
|
486
|
+
Command:/opt/saferpay/saferpay -exec -p lib/conf/conf_for_99867-94913159 -m Authorization -a ACCOUNTID 99867-94913159 -a EXP 1107 -a PAN 9451123100000004 -a AMOUNT 300 -a CURRENCY SEK
|
487
|
+
Command result: <IDP MSGTYPE="AuthorizationResponse" MESSAGE="request was not processed" AUTHMESSAGE="no contract available" ACCOUNTID="99867-94913159" RECEIPTDATA="" RESULT="67"/>
|
data/lib/ruby-saferpay.rb
CHANGED
@@ -10,7 +10,8 @@ require 'uri'
|
|
10
10
|
require 'net/https'
|
11
11
|
require 'hpricot'
|
12
12
|
require 'ostruct'
|
13
|
-
|
13
|
+
require 'ftools'
|
14
|
+
require 'fileutils'
|
14
15
|
class Saferpay
|
15
16
|
|
16
17
|
class WireProtocolError <StandardError; end
|
@@ -76,7 +77,7 @@ class Saferpay
|
|
76
77
|
# TODO: re-work this. Use a ".saferpayrc" file with config info?
|
77
78
|
BASEDIR = '/opt/saferpay/'
|
78
79
|
EXECUTABLE = 'saferpay'
|
79
|
-
CONFIG =
|
80
|
+
# CONFIG = 'config/'
|
80
81
|
|
81
82
|
# Supported currencies. Please note that these are the ones Saferpay supports;
|
82
83
|
# and not necessarily the ones your account support. You might encounter "unsupported
|
@@ -92,12 +93,14 @@ class Saferpay
|
|
92
93
|
end
|
93
94
|
|
94
95
|
# def initialize( account_id = "99867-94913159", pan = "9451123100000004", expiry_date = '1107', cvc = '', name = '', tolerance = 0 )
|
95
|
-
def initialize( account_id, pan, expiry_date, cvc = '', name = '', tolerance = 0 )
|
96
|
+
def initialize( conf_path, account_id, pan, expiry_date, cvc = '', name = '', tolerance = 0 )
|
96
97
|
raise ArgumentError, "Need a valid account_id; was: \"#{account_id}\" (class: #{account_id.class})" unless valid_param?(account_id, {:class => String, :rexp => /^[\d]{5}-[\d]{8}$/})
|
97
98
|
raise ArgumentError, "Need a valid card number; was: \"#{pan}\" (class: #{pan.class})" unless valid_param?(pan, {:class => String, :rexp => /^[\d]{16}$/})
|
98
99
|
raise ArgumentError, "Need a valid expiry_date; was: \"#{expiry_date}\" (class: #{expiry_date.class})" unless valid_param?(expiry_date, {:class => String, :rexp => /^[\d]{4}$/})
|
100
|
+
|
99
101
|
Saferpay.check_install
|
100
102
|
@current_request = nil
|
103
|
+
@conf_path = conf_path
|
101
104
|
|
102
105
|
@account_id = account_id
|
103
106
|
@pan = pan
|
@@ -121,19 +124,19 @@ class Saferpay
|
|
121
124
|
def details( transaction_id = nil )
|
122
125
|
transaction_id = @current_request.transaction_id if transaction_id.nil?
|
123
126
|
raise ArgumentError, "Cannot retrieve transaction details without a transaction id." if transaction_id.nil?
|
124
|
-
req = Request.new(:inquiry, :transaction_id => transaction_id)
|
127
|
+
req = Request.new(@conf_path, :inquiry, :transaction_id => transaction_id, :accountid => @account_id)
|
125
128
|
do_direct_cc req.cmd
|
126
129
|
end
|
127
130
|
|
128
131
|
def reserve( amount, currency, back_reference = nil )
|
129
132
|
check_params amount, currency
|
130
|
-
@current_request = Request.new(:reserve, :amount => amount, :currency => currency, :accountid => @account_id, :pan => @pan, :exp => @expiry_date, :back_reference => back_reference)
|
133
|
+
@current_request = Request.new(@conf_path, :reserve, :amount => amount, :currency => currency, :accountid => @account_id, :pan => @pan, :exp => @expiry_date, :back_reference => back_reference)
|
131
134
|
do_direct_cc( @current_request.cmd )
|
132
135
|
end
|
133
136
|
|
134
137
|
def refund( amount, currency, back_reference = nil )
|
135
138
|
check_params amount, currency
|
136
|
-
@current_request = Request.new(:refund, :amount => amount, :currency => currency, :accountid => @account_id, :pan => @pan, :exp => @expiry_date, :back_reference => back_reference)
|
139
|
+
@current_request = Request.new(@conf_path, :refund, :amount => amount, :currency => currency, :accountid => @account_id, :pan => @pan, :exp => @expiry_date, :back_reference => back_reference)
|
137
140
|
do_direct_cc @current_request.cmd
|
138
141
|
end
|
139
142
|
|
@@ -144,7 +147,7 @@ class Saferpay
|
|
144
147
|
|
145
148
|
def refund_transaction( transaction_id = nil, back_reference = nil )
|
146
149
|
raise ArgumentError, "Cannot refund without transaction_id" if transaction_id.nil?
|
147
|
-
@current_request = Request.new(:refund_transaction, :transaction_id => transaction_id, :back_reference => back_reference )
|
150
|
+
@current_request = Request.new(@conf_path, :refund_transaction, :transaction_id => transaction_id, :back_reference => back_reference, :accountid => @account_id )
|
148
151
|
do_direct_cc @current_request.cmd
|
149
152
|
end
|
150
153
|
|
@@ -152,14 +155,14 @@ class Saferpay
|
|
152
155
|
# Defaults to capturing the current transaction's amount.
|
153
156
|
def capture( transaction_id = nil )
|
154
157
|
transaction_id = @current_request.transaction_id if transaction_id.nil?
|
155
|
-
@current_request = Request.new( :capture, :transaction_id => transaction_id )
|
158
|
+
@current_request = Request.new(@conf_path, :capture, :transaction_id => transaction_id, :accountid => @account_id )
|
156
159
|
do_direct_cc @current_request.cmd
|
157
160
|
end
|
158
161
|
|
159
162
|
def cancel( transaction_id = nil )
|
160
163
|
transaction_id = @current_request.transaction_id if transaction_id.nil?
|
161
164
|
raise ArgumentError, "Cancel failed. No transaction to cancel (transaction_id is nil)" if transaction_id.nil?
|
162
|
-
@current_request = Request.new( :cancel, :transaction_id => transaction_id )
|
165
|
+
@current_request = Request.new( @conf_path, :cancel, :transaction_id => transaction_id, :accountid => @account_id )
|
163
166
|
do_direct_cc @current_request.cmd
|
164
167
|
end
|
165
168
|
|
@@ -173,7 +176,7 @@ class Saferpay
|
|
173
176
|
raise AttributeError, "BLZ is a eight digit number" unless blz.length == 8
|
174
177
|
|
175
178
|
track2 = "\";59#{blz}=#{account_number}\"" # Weird, huh?
|
176
|
-
@current_request = Request.new(:debit_card_reserve, :amount => amount, :currency => currency, :accountid => @account_id, :track2 => track2, :back_reference => back_reference )
|
179
|
+
@current_request = Request.new(@conf_path, :debit_card_reserve, :amount => amount, :currency => currency, :accountid => @account_id, :track2 => track2, :back_reference => back_reference )
|
177
180
|
do_direct_cc @current_request.cmd
|
178
181
|
end
|
179
182
|
alias :lastschrift :debit_card_reserve
|
@@ -193,7 +196,7 @@ class Saferpay
|
|
193
196
|
:successlink => successlink,
|
194
197
|
:notifyurl => notifyurl
|
195
198
|
)
|
196
|
-
cmd = "#{BASEDIR}#{EXECUTABLE} -payinit -p #{CONFIG} -a #{@current_request.to_s}"
|
199
|
+
#TODO: fix this! cmd = "#{BASEDIR}#{EXECUTABLE} -payinit -p #{CONFIG} -a #{@current_request.to_s}"
|
197
200
|
logger.debug "#{self.class}#payinit Will execute command:\n#{cmd}"
|
198
201
|
payinit = %x{#{cmd} 2>&1}
|
199
202
|
|
@@ -348,11 +351,75 @@ private
|
|
348
351
|
true
|
349
352
|
end
|
350
353
|
|
354
|
+
def self.setup_account(conf_path, accountid, username, password)
|
355
|
+
# Sanity check on params
|
356
|
+
raise ArgumentError, "Bad parameters. Configuration path: \"#{conf_path}\", username: \"#{username}\", password: \"#{password}\", accountid: \"#{accountid}\"" if (username.nil? || password.nil? || accountid.nil?)
|
357
|
+
|
358
|
+
account_directory = "#{conf_path}conf_for_#{accountid}"
|
359
|
+
#logger.debug "#{self.class}.setup_account Will configure account in: \"#{account_directory}\""
|
360
|
+
|
361
|
+
# Is really a new account?
|
362
|
+
if File.directory? conf_path
|
363
|
+
if File.directory? account_directory
|
364
|
+
if File.exist?( account_directory + 'config.xml' ) && File.directory?( account_directory + 'keys' )
|
365
|
+
raise ConfigError, "Account already exist."
|
366
|
+
else
|
367
|
+
#FileUtils.remove_dir account_directory
|
368
|
+
raise ConfigError, "Account seems to be corrupt (missing 'config.xml' and 'keys' directory)."
|
369
|
+
end
|
370
|
+
end
|
371
|
+
else
|
372
|
+
raise ConfigError, "No directory with saferpay configurations in \"#{conf_path}\""
|
373
|
+
end
|
374
|
+
|
375
|
+
begin
|
376
|
+
# Can create subdir?
|
377
|
+
# Create dir
|
378
|
+
File.makedirs account_directory
|
379
|
+
rescue => e
|
380
|
+
raise ConfigError, "Impossible to create directory \"#{account_directory}\". Error reported: #{e}"
|
381
|
+
end
|
382
|
+
|
383
|
+
# Execute config command
|
384
|
+
cmd = "#{BASEDIR}#{EXECUTABLE} -conf --path #{account_directory} --serverurl https://www.saferpay.com/user/setup.asp --username #{username} --password #{password}"
|
385
|
+
#logger.debug "#{self.class}.setup_account Configuration command: \"#{cmd}\""
|
386
|
+
|
387
|
+
cmd_result = %x{#{cmd} 2>&1}
|
388
|
+
unless $?.success?
|
389
|
+
logger.error "#{self.class}.setup_account FAILED \nError status: #{$?.inspect}\nCommand:#{cmd}\nCommand result: #{cmd_result}"
|
390
|
+
#FileUtils.remove_dir account_directory
|
391
|
+
raise TransactionError.new(cmd_result)
|
392
|
+
end
|
393
|
+
|
394
|
+
# Done
|
395
|
+
true
|
396
|
+
end
|
397
|
+
|
398
|
+
# TODO: write tests
|
399
|
+
def self.account_configured?( conf_path, accountid )
|
400
|
+
raise ArgumentError, "Saferpay.check_config Bad parameters. Configuration path: \"#{conf_path}\", accountid: \"#{accountid}\"" if (accountid.nil? || conf_path.nil?)
|
401
|
+
account_directory = "#{conf_path}conf_for_#{accountid}"
|
402
|
+
|
403
|
+
if File.directory? conf_path
|
404
|
+
if File.directory? account_directory
|
405
|
+
if File.exist?( account_directory + 'config.xml' ) && File.directory?( account_directory + 'keys' )
|
406
|
+
return true
|
407
|
+
end
|
408
|
+
end
|
409
|
+
end
|
410
|
+
false
|
411
|
+
end
|
412
|
+
|
351
413
|
class Request
|
352
414
|
attr_reader :cmd, :type, :accountid, :account_id, :amount, :currency, :pan, :exp, :expiry_date, :cvc, :track2, :back_reference
|
353
415
|
attr_accessor :transaction_id, :token
|
354
416
|
|
355
|
-
def initialize(type = :authorization, args = {})
|
417
|
+
def initialize(conf_path, type = :authorization, args = {})
|
418
|
+
raise ArgumentError, "No account ID was passed" unless args[:accountid]
|
419
|
+
raise ArgumentError, "No configuration path." unless conf_path
|
420
|
+
|
421
|
+
@conf_path = conf_path
|
422
|
+
|
356
423
|
logger = Saferpay.logger
|
357
424
|
opts = nil
|
358
425
|
attrs = nil
|
@@ -410,7 +477,7 @@ private
|
|
410
477
|
@transaction_id = args[:transaction_id]
|
411
478
|
@back_reference = args[:back_reference] # Reference to calling app's record for this transaction
|
412
479
|
@type = type
|
413
|
-
@cmd = "#{Saferpay::BASEDIR}#{Saferpay::EXECUTABLE} -#{op} -p #{
|
480
|
+
@cmd = "#{Saferpay::BASEDIR}#{Saferpay::EXECUTABLE} -#{op} -p #{@conf_path}conf_for_#{@account_id} #{message} #{opts} #{attrs}"
|
414
481
|
end
|
415
482
|
|
416
483
|
def to_hash
|
data/test/test_ruby-saferpay.rb
CHANGED
@@ -8,14 +8,20 @@ class SaferpayTest < Test::Unit::TestCase
|
|
8
8
|
@pan = "9451123100000004" # Saferpay test PAN
|
9
9
|
@accountid = "99867-94913159" # Saferpay test ACCOUNTID
|
10
10
|
@exp = "1107" # This will change for other test accounts I guess... Might just be three months ahead of Time.now
|
11
|
-
@
|
12
|
-
|
11
|
+
@conf_path = 'lib/conf/'
|
12
|
+
begin
|
13
|
+
username = "t998673384"
|
14
|
+
password = "F6WhdaXZ"
|
15
|
+
Saferpay.setup_account(@conf_path, @accountid, username, password)
|
16
|
+
rescue
|
13
17
|
end
|
14
|
-
|
15
|
-
|
16
|
-
|
18
|
+
@sfp = Saferpay.new( @conf_path, @accountid, @pan, @exp )
|
19
|
+
@sfp2 = Saferpay.new( @conf_path, @accountid, @pan, @exp )
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_test
|
23
|
+
assert true
|
17
24
|
end
|
18
|
-
|
19
25
|
|
20
26
|
def test_install
|
21
27
|
assert_nothing_raised { Saferpay.check_install }
|
@@ -28,7 +34,7 @@ class SaferpayTest < Test::Unit::TestCase
|
|
28
34
|
assert_raise( ArgumentError ) { sfp = Saferpay.new('32332-12345678','1234567891234567','') }
|
29
35
|
assert_raise( ArgumentError ) { sfp = Saferpay.new('32332-12345678','1234567891234567','12345') }
|
30
36
|
assert_raise( ArgumentError ) { sfp = Saferpay.new('32332-12345678',1234567891234567,'1234') }
|
31
|
-
assert_nothing_raised { sfp = Saferpay.new('32332-12345678','1234567891234567','1212') }
|
37
|
+
assert_nothing_raised { sfp = Saferpay.new('lib/conf/', '32332-12345678','1234567891234567','1212') }
|
32
38
|
end
|
33
39
|
|
34
40
|
|
@@ -39,7 +45,7 @@ class SaferpayTest < Test::Unit::TestCase
|
|
39
45
|
}
|
40
46
|
|
41
47
|
assert_raise( Saferpay::TransactionError ) {
|
42
|
-
sfp = Saferpay.new(@accountid, @pan, "3233")
|
48
|
+
sfp = Saferpay.new(@conf_path, @accountid, @pan, "3233")
|
43
49
|
sfp.reserve( 12345, "EUR")
|
44
50
|
}
|
45
51
|
end
|
@@ -48,6 +54,8 @@ class SaferpayTest < Test::Unit::TestCase
|
|
48
54
|
assert_raise( ArgumentError ) { @sfp.reserve( 300 ) }
|
49
55
|
assert_raise( ArgumentError ) { @sfp.reserve( "300", "USD" ) }
|
50
56
|
assert_raise( ArgumentError ) { @sfp.reserve( "300", "300" ) }
|
57
|
+
assert_raise( ArgumentError ) { @sfp.reserve( "300", "300" ) }
|
58
|
+
assert_raise( ArgumentError ) { @sfp.reserve( "300" ) }
|
51
59
|
assert_raise( Saferpay::AttributeError ) { @sfp.reserve( 300, "OOO" ) }
|
52
60
|
end
|
53
61
|
|
@@ -141,8 +149,10 @@ class SaferpayTest < Test::Unit::TestCase
|
|
141
149
|
}
|
142
150
|
end
|
143
151
|
|
144
|
-
|
145
|
-
|
152
|
+
def test_pay
|
153
|
+
res = @sfp.pay( 4000 )
|
154
|
+
assert_is_inquiry_response res
|
155
|
+
end
|
146
156
|
|
147
157
|
private
|
148
158
|
def assert_is_inquiry_response(res)
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-saferpay
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-08-
|
6
|
+
version: 0.0.7
|
7
|
+
date: 2007-08-21 00:00:00 +02:00
|
8
8
|
summary: Ruby interface to the saferpay e-commerce payment provider
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -36,7 +36,7 @@ files:
|
|
36
36
|
- bin/ruby-saferpay
|
37
37
|
- lib/ruby-saferpay.rb
|
38
38
|
- lib/ruby-saferpay/version.rb
|
39
|
-
- lib/log
|
39
|
+
- lib/log/ruby-saferpay.log
|
40
40
|
- test/test_ruby-saferpay.rb
|
41
41
|
test_files:
|
42
42
|
- test/test_ruby-saferpay.rb
|