bluepay 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/Rakefile +1 -1
- data/bluepay.gemspec +3 -3
- data/lib/api_request.rb +125 -0
- data/lib/api_response.rb +150 -0
- data/lib/bluepay.rb +94 -332
- data/lib/cacert.pem +3860 -0
- data/test/Get_Data/Retrieve_Settlement_Data.rb +34 -0
- data/test/Get_Data/Retrieve_Transaction_Data.rb +33 -0
- data/test/Get_Data/Single_Transaction_Query.rb +42 -0
- data/test/Get_Data/Transaction_Notification.rb +61 -0
- data/test/Rebill/Cancel_Recurring_Payment.rb +82 -0
- data/test/Rebill/Create_Recurring_Payment_ACH.rb +60 -0
- data/test/Rebill/Create_Recurring_Payment_CC.rb +62 -0
- data/test/Rebill/Get_Recurring_Payment_Status.rb +82 -0
- data/test/Rebill/Update_Recurring_Payment.rb +111 -0
- data/test/Transactions/Cancel_Transaction.rb +74 -0
- data/test/Transactions/Charge_Customer_ACH.rb +54 -0
- data/test/Transactions/Charge_Customer_CC.rb +60 -0
- data/test/Transactions/Check_Customer_Credit.rb +58 -0
- data/test/Transactions/Customer_Defined_Data.rb +71 -0
- data/test/Transactions/How_To_Use_Token.rb +42 -0
- data/test/Transactions/Return_Funds.rb +77 -0
- data/test/Transactions/Store_Payment_Information.rb +58 -0
- metadata +42 -93
- data/doc/BluePay.html +0 -2699
- data/doc/README.html +0 -174
- data/doc/created.rid +0 -3
- data/doc/fonts.css +0 -167
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -92
- data/doc/js/darkfish.js +0 -140
- data/doc/js/jquery.js +0 -18
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/rdoc.css +0 -580
- data/doc/table_of_contents.html +0 -405
- data/test/get_data/retrieve_settlement_data.rb +0 -39
- data/test/get_data/retrieve_transaction_data.rb +0 -37
- data/test/get_data/transaction_query.rb +0 -48
- data/test/getting_stuff_done/get_transaction_data.rb +0 -37
- data/test/getting_stuff_done/run_ach_payment.rb +0 -75
- data/test/getting_stuff_done/run_cc_payment.rb +0 -73
- data/test/getting_stuff_done/set_up_rebill_ach.rb +0 -85
- data/test/getting_stuff_done/set_up_rebill_cc.rb +0 -84
- data/test/rebills/cancel_rebill.rb +0 -96
- data/test/rebills/create_rebill.rb +0 -84
- data/test/rebills/get_rebill.rb +0 -97
- data/test/rebills/update_rebill.rb +0 -128
- data/test/transactions/cancel_transaction.rb +0 -85
- data/test/transactions/charge_customer.rb +0 -74
- data/test/transactions/check_customer_credit.rb +0 -74
- data/test/transactions/credit_customer.rb +0 -75
- data/test/transactions/customer_defined_data.rb +0 -99
- data/test/transactions/return_funds.rb +0 -86
- data/test/transactions/store_payment_information.rb +0 -74
- data/test/transactions/use_token.rb +0 -44
data/doc/table_of_contents.html
DELETED
@@ -1,405 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>Table of Contents - Ruby Merchant Bluepay</title>
|
8
|
-
|
9
|
-
<link href="./fonts.css" rel="stylesheet">
|
10
|
-
<link href="./rdoc.css" rel="stylesheet">
|
11
|
-
|
12
|
-
<script type="text/javascript">
|
13
|
-
var rdoc_rel_prefix = "./";
|
14
|
-
</script>
|
15
|
-
|
16
|
-
<script src="./js/jquery.js"></script>
|
17
|
-
<script src="./js/navigation.js"></script>
|
18
|
-
<script src="./js/search_index.js"></script>
|
19
|
-
<script src="./js/search.js"></script>
|
20
|
-
<script src="./js/searcher.js"></script>
|
21
|
-
<script src="./js/darkfish.js"></script>
|
22
|
-
|
23
|
-
|
24
|
-
<body id="top" class="table-of-contents">
|
25
|
-
<main role="main">
|
26
|
-
<h1 class="class">Table of Contents - Ruby Merchant Bluepay</h1>
|
27
|
-
|
28
|
-
<h2 id="pages">Pages</h2>
|
29
|
-
<ul>
|
30
|
-
<li class="file">
|
31
|
-
<a href="README.html">README</a>
|
32
|
-
|
33
|
-
<ul>
|
34
|
-
<li><a href="README.html#label-Welcome+to+Bluepay">Welcome to Bluepay</a>
|
35
|
-
<li><a href="README.html#label-Example">Example</a>
|
36
|
-
<li><a href="README.html#label-About">About</a>
|
37
|
-
</ul>
|
38
|
-
</li>
|
39
|
-
|
40
|
-
</ul>
|
41
|
-
|
42
|
-
<h2 id="classes">Classes and Modules</h2>
|
43
|
-
<ul>
|
44
|
-
<li class="class">
|
45
|
-
<a href="BluePay.html">BluePay</a>
|
46
|
-
</li>
|
47
|
-
</ul>
|
48
|
-
|
49
|
-
<h2 id="methods">Methods</h2>
|
50
|
-
<ul>
|
51
|
-
|
52
|
-
<li class="method">
|
53
|
-
<a href="BluePay.html#method-c-calc_trans_notify_tps">::calc_trans_notify_tps</a>
|
54
|
-
—
|
55
|
-
<span class="container">BluePay</span>
|
56
|
-
|
57
|
-
<li class="method">
|
58
|
-
<a href="BluePay.html#method-c-new">::new</a>
|
59
|
-
—
|
60
|
-
<span class="container">BluePay</span>
|
61
|
-
|
62
|
-
<li class="method">
|
63
|
-
<a href="BluePay.html#method-i-add_recurring_fields">#add_recurring_fields</a>
|
64
|
-
—
|
65
|
-
<span class="container">BluePay</span>
|
66
|
-
|
67
|
-
<li class="method">
|
68
|
-
<a href="BluePay.html#method-i-auth">#auth</a>
|
69
|
-
—
|
70
|
-
<span class="container">BluePay</span>
|
71
|
-
|
72
|
-
<li class="method">
|
73
|
-
<a href="BluePay.html#method-i-calc_rebill_tps">#calc_rebill_tps</a>
|
74
|
-
—
|
75
|
-
<span class="container">BluePay</span>
|
76
|
-
|
77
|
-
<li class="method">
|
78
|
-
<a href="BluePay.html#method-i-calc_report_tps">#calc_report_tps</a>
|
79
|
-
—
|
80
|
-
<span class="container">BluePay</span>
|
81
|
-
|
82
|
-
<li class="method">
|
83
|
-
<a href="BluePay.html#method-i-calc_tps">#calc_tps</a>
|
84
|
-
—
|
85
|
-
<span class="container">BluePay</span>
|
86
|
-
|
87
|
-
<li class="method">
|
88
|
-
<a href="BluePay.html#method-i-cancel_rebilling_cycle">#cancel_rebilling_cycle</a>
|
89
|
-
—
|
90
|
-
<span class="container">BluePay</span>
|
91
|
-
|
92
|
-
<li class="method">
|
93
|
-
<a href="BluePay.html#method-i-capture">#capture</a>
|
94
|
-
—
|
95
|
-
<span class="container">BluePay</span>
|
96
|
-
|
97
|
-
<li class="method">
|
98
|
-
<a href="BluePay.html#method-i-credit">#credit</a>
|
99
|
-
—
|
100
|
-
<span class="container">BluePay</span>
|
101
|
-
|
102
|
-
<li class="method">
|
103
|
-
<a href="BluePay.html#method-i-get_amount">#get_amount</a>
|
104
|
-
—
|
105
|
-
<span class="container">BluePay</span>
|
106
|
-
|
107
|
-
<li class="method">
|
108
|
-
<a href="BluePay.html#method-i-get_auth_code">#get_auth_code</a>
|
109
|
-
—
|
110
|
-
<span class="container">BluePay</span>
|
111
|
-
|
112
|
-
<li class="method">
|
113
|
-
<a href="BluePay.html#method-i-get_avs_code">#get_avs_code</a>
|
114
|
-
—
|
115
|
-
<span class="container">BluePay</span>
|
116
|
-
|
117
|
-
<li class="method">
|
118
|
-
<a href="BluePay.html#method-i-get_bank_name">#get_bank_name</a>
|
119
|
-
—
|
120
|
-
<span class="container">BluePay</span>
|
121
|
-
|
122
|
-
<li class="method">
|
123
|
-
<a href="BluePay.html#method-i-get_card_type">#get_card_type</a>
|
124
|
-
—
|
125
|
-
<span class="container">BluePay</span>
|
126
|
-
|
127
|
-
<li class="method">
|
128
|
-
<a href="BluePay.html#method-i-get_creation_date">#get_creation_date</a>
|
129
|
-
—
|
130
|
-
<span class="container">BluePay</span>
|
131
|
-
|
132
|
-
<li class="method">
|
133
|
-
<a href="BluePay.html#method-i-get_cvv2_code">#get_cvv2_code</a>
|
134
|
-
—
|
135
|
-
<span class="container">BluePay</span>
|
136
|
-
|
137
|
-
<li class="method">
|
138
|
-
<a href="BluePay.html#method-i-get_cycles_remaining">#get_cycles_remaining</a>
|
139
|
-
—
|
140
|
-
<span class="container">BluePay</span>
|
141
|
-
|
142
|
-
<li class="method">
|
143
|
-
<a href="BluePay.html#method-i-get_id">#get_id</a>
|
144
|
-
—
|
145
|
-
<span class="container">BluePay</span>
|
146
|
-
|
147
|
-
<li class="method">
|
148
|
-
<a href="BluePay.html#method-i-get_last_date">#get_last_date</a>
|
149
|
-
—
|
150
|
-
<span class="container">BluePay</span>
|
151
|
-
|
152
|
-
<li class="method">
|
153
|
-
<a href="BluePay.html#method-i-get_masked_account">#get_masked_account</a>
|
154
|
-
—
|
155
|
-
<span class="container">BluePay</span>
|
156
|
-
|
157
|
-
<li class="method">
|
158
|
-
<a href="BluePay.html#method-i-get_message">#get_message</a>
|
159
|
-
—
|
160
|
-
<span class="container">BluePay</span>
|
161
|
-
|
162
|
-
<li class="method">
|
163
|
-
<a href="BluePay.html#method-i-get_name1">#get_name1</a>
|
164
|
-
—
|
165
|
-
<span class="container">BluePay</span>
|
166
|
-
|
167
|
-
<li class="method">
|
168
|
-
<a href="BluePay.html#method-i-get_name2">#get_name2</a>
|
169
|
-
—
|
170
|
-
<span class="container">BluePay</span>
|
171
|
-
|
172
|
-
<li class="method">
|
173
|
-
<a href="BluePay.html#method-i-get_next_amount">#get_next_amount</a>
|
174
|
-
—
|
175
|
-
<span class="container">BluePay</span>
|
176
|
-
|
177
|
-
<li class="method">
|
178
|
-
<a href="BluePay.html#method-i-get_next_date">#get_next_date</a>
|
179
|
-
—
|
180
|
-
<span class="container">BluePay</span>
|
181
|
-
|
182
|
-
<li class="method">
|
183
|
-
<a href="BluePay.html#method-i-get_payment_type">#get_payment_type</a>
|
184
|
-
—
|
185
|
-
<span class="container">BluePay</span>
|
186
|
-
|
187
|
-
<li class="method">
|
188
|
-
<a href="BluePay.html#method-i-get_reb_id">#get_reb_id</a>
|
189
|
-
—
|
190
|
-
<span class="container">BluePay</span>
|
191
|
-
|
192
|
-
<li class="method">
|
193
|
-
<a href="BluePay.html#method-i-get_rebill_amount">#get_rebill_amount</a>
|
194
|
-
—
|
195
|
-
<span class="container">BluePay</span>
|
196
|
-
|
197
|
-
<li class="method">
|
198
|
-
<a href="BluePay.html#method-i-get_rebill_id">#get_rebill_id</a>
|
199
|
-
—
|
200
|
-
<span class="container">BluePay</span>
|
201
|
-
|
202
|
-
<li class="method">
|
203
|
-
<a href="BluePay.html#method-i-get_rebill_status">#get_rebill_status</a>
|
204
|
-
—
|
205
|
-
<span class="container">BluePay</span>
|
206
|
-
|
207
|
-
<li class="method">
|
208
|
-
<a href="BluePay.html#method-i-get_rebilling_cycle_status">#get_rebilling_cycle_status</a>
|
209
|
-
—
|
210
|
-
<span class="container">BluePay</span>
|
211
|
-
|
212
|
-
<li class="method">
|
213
|
-
<a href="BluePay.html#method-i-get_response">#get_response</a>
|
214
|
-
—
|
215
|
-
<span class="container">BluePay</span>
|
216
|
-
|
217
|
-
<li class="method">
|
218
|
-
<a href="BluePay.html#method-i-get_sched_expression">#get_sched_expression</a>
|
219
|
-
—
|
220
|
-
<span class="container">BluePay</span>
|
221
|
-
|
222
|
-
<li class="method">
|
223
|
-
<a href="BluePay.html#method-i-get_settled_transaction_report">#get_settled_transaction_report</a>
|
224
|
-
—
|
225
|
-
<span class="container">BluePay</span>
|
226
|
-
|
227
|
-
<li class="method">
|
228
|
-
<a href="BluePay.html#method-i-get_single_trans_query">#get_single_trans_query</a>
|
229
|
-
—
|
230
|
-
<span class="container">BluePay</span>
|
231
|
-
|
232
|
-
<li class="method">
|
233
|
-
<a href="BluePay.html#method-i-get_status">#get_status</a>
|
234
|
-
—
|
235
|
-
<span class="container">BluePay</span>
|
236
|
-
|
237
|
-
<li class="method">
|
238
|
-
<a href="BluePay.html#method-i-get_template_id">#get_template_id</a>
|
239
|
-
—
|
240
|
-
<span class="container">BluePay</span>
|
241
|
-
|
242
|
-
<li class="method">
|
243
|
-
<a href="BluePay.html#method-i-get_trans_id">#get_trans_id</a>
|
244
|
-
—
|
245
|
-
<span class="container">BluePay</span>
|
246
|
-
|
247
|
-
<li class="method">
|
248
|
-
<a href="BluePay.html#method-i-get_trans_type">#get_trans_type</a>
|
249
|
-
—
|
250
|
-
<span class="container">BluePay</span>
|
251
|
-
|
252
|
-
<li class="method">
|
253
|
-
<a href="BluePay.html#method-i-get_transaction_report">#get_transaction_report</a>
|
254
|
-
—
|
255
|
-
<span class="container">BluePay</span>
|
256
|
-
|
257
|
-
<li class="method">
|
258
|
-
<a href="BluePay.html#method-i-process">#process</a>
|
259
|
-
—
|
260
|
-
<span class="container">BluePay</span>
|
261
|
-
|
262
|
-
<li class="method">
|
263
|
-
<a href="BluePay.html#method-i-query_by_amount">#query_by_amount</a>
|
264
|
-
—
|
265
|
-
<span class="container">BluePay</span>
|
266
|
-
|
267
|
-
<li class="method">
|
268
|
-
<a href="BluePay.html#method-i-query_by_name1">#query_by_name1</a>
|
269
|
-
—
|
270
|
-
<span class="container">BluePay</span>
|
271
|
-
|
272
|
-
<li class="method">
|
273
|
-
<a href="BluePay.html#method-i-query_by_name2">#query_by_name2</a>
|
274
|
-
—
|
275
|
-
<span class="container">BluePay</span>
|
276
|
-
|
277
|
-
<li class="method">
|
278
|
-
<a href="BluePay.html#method-i-query_by_payment_type">#query_by_payment_type</a>
|
279
|
-
—
|
280
|
-
<span class="container">BluePay</span>
|
281
|
-
|
282
|
-
<li class="method">
|
283
|
-
<a href="BluePay.html#method-i-query_by_trans_type">#query_by_trans_type</a>
|
284
|
-
—
|
285
|
-
<span class="container">BluePay</span>
|
286
|
-
|
287
|
-
<li class="method">
|
288
|
-
<a href="BluePay.html#method-i-query_by_transaction_id">#query_by_transaction_id</a>
|
289
|
-
—
|
290
|
-
<span class="container">BluePay</span>
|
291
|
-
|
292
|
-
<li class="method">
|
293
|
-
<a href="BluePay.html#method-i-refund">#refund</a>
|
294
|
-
—
|
295
|
-
<span class="container">BluePay</span>
|
296
|
-
|
297
|
-
<li class="method">
|
298
|
-
<a href="BluePay.html#method-i-sale">#sale</a>
|
299
|
-
—
|
300
|
-
<span class="container">BluePay</span>
|
301
|
-
|
302
|
-
<li class="method">
|
303
|
-
<a href="BluePay.html#method-i-set_ach_information">#set_ach_information</a>
|
304
|
-
—
|
305
|
-
<span class="container">BluePay</span>
|
306
|
-
|
307
|
-
<li class="method">
|
308
|
-
<a href="BluePay.html#method-i-set_amount_food">#set_amount_food</a>
|
309
|
-
—
|
310
|
-
<span class="container">BluePay</span>
|
311
|
-
|
312
|
-
<li class="method">
|
313
|
-
<a href="BluePay.html#method-i-set_amount_misc">#set_amount_misc</a>
|
314
|
-
—
|
315
|
-
<span class="container">BluePay</span>
|
316
|
-
|
317
|
-
<li class="method">
|
318
|
-
<a href="BluePay.html#method-i-set_amount_tax">#set_amount_tax</a>
|
319
|
-
—
|
320
|
-
<span class="container">BluePay</span>
|
321
|
-
|
322
|
-
<li class="method">
|
323
|
-
<a href="BluePay.html#method-i-set_amount_tip">#set_amount_tip</a>
|
324
|
-
—
|
325
|
-
<span class="container">BluePay</span>
|
326
|
-
|
327
|
-
<li class="method">
|
328
|
-
<a href="BluePay.html#method-i-set_cc_information">#set_cc_information</a>
|
329
|
-
—
|
330
|
-
<span class="container">BluePay</span>
|
331
|
-
|
332
|
-
<li class="method">
|
333
|
-
<a href="BluePay.html#method-i-set_custom_id1">#set_custom_id1</a>
|
334
|
-
—
|
335
|
-
<span class="container">BluePay</span>
|
336
|
-
|
337
|
-
<li class="method">
|
338
|
-
<a href="BluePay.html#method-i-set_custom_id2">#set_custom_id2</a>
|
339
|
-
—
|
340
|
-
<span class="container">BluePay</span>
|
341
|
-
|
342
|
-
<li class="method">
|
343
|
-
<a href="BluePay.html#method-i-set_customer_information">#set_customer_information</a>
|
344
|
-
—
|
345
|
-
<span class="container">BluePay</span>
|
346
|
-
|
347
|
-
<li class="method">
|
348
|
-
<a href="BluePay.html#method-i-set_email">#set_email</a>
|
349
|
-
—
|
350
|
-
<span class="container">BluePay</span>
|
351
|
-
|
352
|
-
<li class="method">
|
353
|
-
<a href="BluePay.html#method-i-set_invoice_id">#set_invoice_id</a>
|
354
|
-
—
|
355
|
-
<span class="container">BluePay</span>
|
356
|
-
|
357
|
-
<li class="method">
|
358
|
-
<a href="BluePay.html#method-i-set_memo">#set_memo</a>
|
359
|
-
—
|
360
|
-
<span class="container">BluePay</span>
|
361
|
-
|
362
|
-
<li class="method">
|
363
|
-
<a href="BluePay.html#method-i-set_order_id">#set_order_id</a>
|
364
|
-
—
|
365
|
-
<span class="container">BluePay</span>
|
366
|
-
|
367
|
-
<li class="method">
|
368
|
-
<a href="BluePay.html#method-i-set_param">#set_param</a>
|
369
|
-
—
|
370
|
-
<span class="container">BluePay</span>
|
371
|
-
|
372
|
-
<li class="method">
|
373
|
-
<a href="BluePay.html#method-i-set_phone">#set_phone</a>
|
374
|
-
—
|
375
|
-
<span class="container">BluePay</span>
|
376
|
-
|
377
|
-
<li class="method">
|
378
|
-
<a href="BluePay.html#method-i-update_rebilling_cycle">#update_rebilling_cycle</a>
|
379
|
-
—
|
380
|
-
<span class="container">BluePay</span>
|
381
|
-
|
382
|
-
<li class="method">
|
383
|
-
<a href="BluePay.html#method-i-update_rebilling_payment_information">#update_rebilling_payment_information</a>
|
384
|
-
—
|
385
|
-
<span class="container">BluePay</span>
|
386
|
-
|
387
|
-
<li class="method">
|
388
|
-
<a href="BluePay.html#method-i-uri_query">#uri_query</a>
|
389
|
-
—
|
390
|
-
<span class="container">BluePay</span>
|
391
|
-
|
392
|
-
<li class="method">
|
393
|
-
<a href="BluePay.html#method-i-void">#void</a>
|
394
|
-
—
|
395
|
-
<span class="container">BluePay</span>
|
396
|
-
</ul>
|
397
|
-
</main>
|
398
|
-
|
399
|
-
|
400
|
-
<footer id="validator-badges" role="contentinfo">
|
401
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
402
|
-
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
|
403
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
404
|
-
</footer>
|
405
|
-
|
@@ -1,39 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# BluePay Ruby Sample code.
|
3
|
-
#
|
4
|
-
# This code sample runs a report that grabs data from the
|
5
|
-
# BluePay gateway based on certain criteria. This will ONLY return
|
6
|
-
# transactions that have already settled. See comments below
|
7
|
-
# on the details of the report.
|
8
|
-
# If using TEST mode, only TEST transactions will be returned.
|
9
|
-
##
|
10
|
-
|
11
|
-
require "bluepay"
|
12
|
-
|
13
|
-
$ACCOUNT_ID = "MERCHANT'S ACCOUNT ID HERE"
|
14
|
-
$SECRET_KEY = "MERCHANT'S SECRET KEY HERE"
|
15
|
-
$MODE = "TEST"
|
16
|
-
|
17
|
-
# Merchant's Account ID
|
18
|
-
# Merchant's Secret Key
|
19
|
-
# Transaction Mode: TEST (can also be LIVE)
|
20
|
-
report = BluePay.new(
|
21
|
-
$ACCOUNT_ID,
|
22
|
-
$SECRET_KEY,
|
23
|
-
$MODE)
|
24
|
-
|
25
|
-
# Report Start Date: Jan. 1, 2013
|
26
|
-
# Report End Date: Jan. 15, 2013
|
27
|
-
# Also search subaccounts? Yes
|
28
|
-
# Output response without commas? Yes
|
29
|
-
# Do not include errored transactions? Yes
|
30
|
-
report.get_settled_transaction_report(
|
31
|
-
'2013-01-01',
|
32
|
-
'2013-01-15',
|
33
|
-
'1',
|
34
|
-
'1',
|
35
|
-
'1')
|
36
|
-
report.process()
|
37
|
-
|
38
|
-
# Read response from BluePay
|
39
|
-
puts report.get_response()
|
@@ -1,37 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# BluePay Ruby Sample code.
|
3
|
-
#
|
4
|
-
# This code sample runs a report that grabs data from the
|
5
|
-
# BluePay gateway based on certain criteria.
|
6
|
-
# If using TEST mode, only TEST transactions will be returned.
|
7
|
-
##
|
8
|
-
|
9
|
-
require "bluepay"
|
10
|
-
|
11
|
-
$ACCOUNT_ID = "MERCHANT'S ACCOUNT ID HERE"
|
12
|
-
$SECRET_KEY = "MERCHANT'S SECRET KEY HERE"
|
13
|
-
$MODE = "TEST"
|
14
|
-
|
15
|
-
# Merchant's Account ID
|
16
|
-
# Merchant's Secret Key
|
17
|
-
# Transaction Mode: TEST (can also be LIVE)
|
18
|
-
report = BluePay.new(
|
19
|
-
$ACCOUNT_ID,
|
20
|
-
$SECRET_KEY,
|
21
|
-
$MODE)
|
22
|
-
|
23
|
-
# Report Start Date: Jan. 1, 2013
|
24
|
-
# Report End Date: Jan. 15, 2013
|
25
|
-
# Also search subaccounts? Yes
|
26
|
-
# Output response without commas? Yes
|
27
|
-
# Do not include errored transactions? Yes
|
28
|
-
report.get_transaction_report(
|
29
|
-
'2013-01-01',
|
30
|
-
'2013-01-15',
|
31
|
-
'1',
|
32
|
-
'1',
|
33
|
-
'1')
|
34
|
-
report.process()
|
35
|
-
|
36
|
-
# Read response from BluePay
|
37
|
-
puts report.get_response()
|