for-all-payment-gateway 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae52dfe09a5c9c1bcc621056de5b093589536d0ea54359e2f9d16e5a34e48160
4
- data.tar.gz: efe0b8709c9b6752fd114470e528ed3516ef6d66057507b26750be8d3d98b57b
3
+ metadata.gz: c9f2cf502e71d2c97940322645eb4e2ae5cdcaf4da20e40c11cc936e1788ca66
4
+ data.tar.gz: da26716b563e5931b69f54e895efd4a39e49fb028ab6d01003863189be75e551
5
5
  SHA512:
6
- metadata.gz: ffbf1b213722ecceaf0fbc8729a5d4e451f67ab28a9a9f60c08b3b3516d04cb7381b5192b47226bbf215edda1d0f74beb5ce1295b90114aca4e9a26dc5af7520
7
- data.tar.gz: 65023493502972f85b29580f6698295fe56a8ab8d95e2b874c5592fa9f09bfa79d0a54f40c348408ea6fdb456ef3e01cb476469653723985a9cc52cd00ef8e78
6
+ metadata.gz: ea7fd753890473c202e4b7d539c3b0a7466ed9ab92deea73f41d153dd24ba46d3718936cc91cf1f819fc6ad8c700577976ca56eff2e2f3e0e3d120fd7c74b225
7
+ data.tar.gz: e22ee24a681c96370b7bb8da6049f03b6da0104dc1400f27d0a37d5d72e75a02068d169cd6583d1e1586663c47906f5f7eb68478fecbce0537a8e24d61c1ae46
data/.idea/workspace.xml CHANGED
@@ -2,15 +2,9 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="bb91f9e5-dcd0-4c27-bcd5-0888d2ca02ae" name="Default" comment="">
5
- <change afterPath="$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb" afterDir="false" />
5
+ <change afterPath="$PROJECT_DIR$/lib/payment_gateway/version.rb" afterDir="false" />
6
6
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7
7
  <change beforePath="$PROJECT_DIR$/for-all-payment-gateway.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/for-all-payment-gateway.gemspec" afterDir="false" />
8
- <change beforePath="$PROJECT_DIR$/lib/payment_gateway.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/payment_gateway.rb" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/lib/payment_gateway/for_all.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/payment_gateway/for_all.rb" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/spec/for/all/payment/gateway_spec.rb" beforeDir="false" />
14
8
  </list>
15
9
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
16
10
  <option name="TRACKING_ENABLED" value="true" />
@@ -24,20 +18,80 @@
24
18
  </component>
25
19
  <component name="FileEditorManager">
26
20
  <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
27
- <file leaf-file-name="card.rb" pinned="false" current-in-tab="false">
28
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb">
21
+ <file leaf-file-name="for-all-payment-gateway.rb" pinned="false" current-in-tab="false">
22
+ <entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
23
+ <provider selected="true" editor-type-id="text-editor">
24
+ <state relative-caret-position="110">
25
+ <caret line="5" column="8" selection-start-line="5" selection-start-column="8" selection-end-line="5" selection-end-column="8" />
26
+ </state>
27
+ </provider>
28
+ </entry>
29
+ </file>
30
+ <file leaf-file-name="base.rb" pinned="false" current-in-tab="false">
31
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb">
29
32
  <provider selected="true" editor-type-id="text-editor">
30
- <state relative-caret-position="418">
31
- <caret line="19" column="19" selection-start-line="19" selection-start-column="19" selection-end-line="19" selection-end-column="19" />
33
+ <state relative-caret-position="22">
34
+ <caret line="1" column="16" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
32
35
  </state>
33
36
  </provider>
34
37
  </entry>
35
38
  </file>
36
- <file leaf-file-name="for-all-payment-gateway.gemspec" pinned="false" current-in-tab="true">
39
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
40
+ <entry file="file://$PROJECT_DIR$/Gemfile">
41
+ <provider selected="true" editor-type-id="text-editor" />
42
+ </entry>
43
+ </file>
44
+ <file leaf-file-name="for-all-payment-gateway.gemspec" pinned="false" current-in-tab="false">
37
45
  <entry file="file://$PROJECT_DIR$/for-all-payment-gateway.gemspec">
38
46
  <provider selected="true" editor-type-id="text-editor">
39
- <state relative-caret-position="110">
40
- <caret line="5" column="32" lean-forward="true" selection-start-line="5" selection-start-column="32" selection-end-line="5" selection-end-column="32" />
47
+ <state relative-caret-position="44">
48
+ <caret line="2" column="29" selection-start-line="2" selection-start-column="29" selection-end-line="2" selection-end-column="29" />
49
+ </state>
50
+ </provider>
51
+ </entry>
52
+ </file>
53
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
54
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/version.rb">
55
+ <provider selected="true" editor-type-id="text-editor" />
56
+ </entry>
57
+ </file>
58
+ <file leaf-file-name="vault.rb" pinned="false" current-in-tab="false">
59
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb">
60
+ <provider selected="true" editor-type-id="text-editor">
61
+ <state relative-caret-position="286">
62
+ <caret line="13" column="15" selection-start-line="13" selection-start-column="15" selection-end-line="13" selection-end-column="15" />
63
+ </state>
64
+ </provider>
65
+ </entry>
66
+ </file>
67
+ <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
68
+ <entry file="file://$PROJECT_DIR$/.gitignore">
69
+ <provider selected="true" editor-type-id="text-editor" />
70
+ </entry>
71
+ </file>
72
+ <file leaf-file-name="transaction.rb" pinned="false" current-in-tab="false">
73
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
74
+ <provider selected="true" editor-type-id="text-editor">
75
+ <state relative-caret-position="544">
76
+ <caret line="63" column="15" selection-start-line="63" selection-start-column="15" selection-end-line="63" selection-end-column="15" />
77
+ </state>
78
+ </provider>
79
+ </entry>
80
+ </file>
81
+ <file leaf-file-name="for_all.rb" pinned="false" current-in-tab="false">
82
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all.rb">
83
+ <provider selected="true" editor-type-id="text-editor">
84
+ <state relative-caret-position="484">
85
+ <caret line="22" column="32" selection-start-line="22" selection-start-column="32" selection-end-line="22" selection-end-column="32" />
86
+ </state>
87
+ </provider>
88
+ </entry>
89
+ </file>
90
+ <file leaf-file-name="card.rb" pinned="false" current-in-tab="false">
91
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb">
92
+ <provider selected="true" editor-type-id="text-editor">
93
+ <state relative-caret-position="682">
94
+ <caret line="31" column="15" selection-start-line="31" selection-start-column="15" selection-end-line="31" selection-end-column="15" />
41
95
  </state>
42
96
  </provider>
43
97
  </entry>
@@ -51,6 +105,14 @@
51
105
  </list>
52
106
  </option>
53
107
  </component>
108
+ <component name="FindInProjectRecents">
109
+ <findStrings>
110
+ <find>access_key</find>
111
+ <find>environment</find>
112
+ <find>API_URL</find>
113
+ <find>pry-</find>
114
+ </findStrings>
115
+ </component>
54
116
  <component name="Git.Settings">
55
117
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
56
118
  </component>
@@ -60,14 +122,17 @@
60
122
  <option value="$PROJECT_DIR$/bin/console" />
61
123
  <option value="$PROJECT_DIR$/lib/payment_gateway-for-all.rb" />
62
124
  <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/test.rb" />
63
- <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb" />
64
125
  <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/teste.rb" />
65
- <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb" />
66
- <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb" />
67
- <option value="$PROJECT_DIR$/lib/payment_gateway/for_all.rb" />
68
126
  <option value="$PROJECT_DIR$/lib/payment_gateway.rb" />
127
+ <option value="$PROJECT_DIR$/README.md" />
128
+ <option value="$PROJECT_DIR$/lib/for-all-payment-gateway.rb" />
129
+ <option value="$PROJECT_DIR$/lib/payment_gateway/for_all.rb" />
130
+ <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb" />
131
+ <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb" />
132
+ <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb" />
69
133
  <option value="$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb" />
70
134
  <option value="$PROJECT_DIR$/for-all-payment-gateway.gemspec" />
135
+ <option value="$PROJECT_DIR$/lib/payment_gateway/version.rb" />
71
136
  </list>
72
137
  </option>
73
138
  </component>
@@ -81,9 +146,8 @@
81
146
  <packageJsonPaths />
82
147
  </component>
83
148
  <component name="ProjectFrameBounds" fullScreen="true">
84
- <option name="y" value="119" />
85
149
  <option name="width" value="1280" />
86
- <option name="height" value="731" />
150
+ <option name="height" value="800" />
87
151
  </component>
88
152
  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
89
153
  <component name="ProjectView">
@@ -91,6 +155,7 @@
91
155
  <foldersAlwaysOnTop value="true" />
92
156
  </navigator>
93
157
  <panes>
158
+ <pane id="Scope" />
94
159
  <pane id="ProjectPane">
95
160
  <subPane>
96
161
  <expand>
@@ -114,29 +179,10 @@
114
179
  <item name="lib" type="462c0819:PsiDirectoryNode" />
115
180
  <item name="payment_gateway" type="462c0819:PsiDirectoryNode" />
116
181
  </path>
117
- <path>
118
- <item name="for-all-payment-gateway" type="b2602c69:ProjectViewProjectNode" />
119
- <item name="for-all-payment-gateway" type="462c0819:PsiDirectoryNode" />
120
- <item name="lib" type="462c0819:PsiDirectoryNode" />
121
- <item name="payment_gateway" type="462c0819:PsiDirectoryNode" />
122
- <item name="for_all" type="462c0819:PsiDirectoryNode" />
123
- </path>
124
- <path>
125
- <item name="for-all-payment-gateway" type="b2602c69:ProjectViewProjectNode" />
126
- <item name="for-all-payment-gateway" type="462c0819:PsiDirectoryNode" />
127
- <item name="spec" type="462c0819:PsiDirectoryNode" />
128
- </path>
129
- <path>
130
- <item name="for-all-payment-gateway" type="b2602c69:ProjectViewProjectNode" />
131
- <item name="for-all-payment-gateway" type="462c0819:PsiDirectoryNode" />
132
- <item name="spec" type="462c0819:PsiDirectoryNode" />
133
- <item name="payment_gateway" type="462c0819:PsiDirectoryNode" />
134
- </path>
135
182
  </expand>
136
183
  <select />
137
184
  </subPane>
138
185
  </pane>
139
- <pane id="Scope" />
140
186
  </panes>
141
187
  </component>
142
188
  <component name="PropertiesComponent">
@@ -144,6 +190,7 @@
144
190
  <property name="WebServerToolWindowFactoryState" value="false" />
145
191
  <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
146
192
  <property name="nodejs_npm_path_reset_for_default_project" value="true" />
193
+ <property name="run.code.analysis.last.selected.profile" value="pProject Default" />
147
194
  <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
148
195
  </component>
149
196
  <component name="RecentsManager">
@@ -203,27 +250,38 @@
203
250
  <workItem from="1539113643976" duration="1260000" />
204
251
  <workItem from="1539174885385" duration="2400000" />
205
252
  <workItem from="1539194960138" duration="6586000" />
206
- <workItem from="1539266349830" duration="209000" />
253
+ <workItem from="1539266349830" duration="1602000" />
254
+ <workItem from="1539708716677" duration="3256000" />
255
+ <workItem from="1539715778167" duration="958000" />
256
+ <workItem from="1541778196179" duration="23000" />
257
+ <workItem from="1541783336883" duration="1539000" />
258
+ <workItem from="1545834008881" duration="4617000" />
259
+ <workItem from="1545917460665" duration="1492000" />
260
+ <workItem from="1548349351829" duration="29000" />
261
+ <workItem from="1549039198478" duration="1158000" />
262
+ <workItem from="1549309619172" duration="2612000" />
263
+ <workItem from="1549466980157" duration="2133000" />
207
264
  </task>
208
265
  <servers />
209
266
  </component>
210
267
  <component name="TimeTrackingManager">
211
- <option name="totallyTimeSpent" value="33391000" />
268
+ <option name="totallyTimeSpent" value="52601000" />
212
269
  </component>
213
270
  <component name="ToolWindowManager">
214
- <frame x="0" y="0" width="1280" height="800" extended-state="0" />
271
+ <frame x="0" y="0" width="1280" height="800" extended-state="6" />
215
272
  <editor active="true" />
216
273
  <layout>
217
- <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.22578125" />
218
274
  <window_info anchor="bottom" id="TODO" order="6" />
219
- <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
220
275
  <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
221
- <window_info anchor="right" id="Database" order="3" />
222
276
  <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
223
277
  <window_info anchor="bottom" id="Run" order="2" weight="0.20588236" />
224
278
  <window_info anchor="bottom" id="Version Control" order="7" />
225
- <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
226
279
  <window_info anchor="bottom" id="Terminal" order="7" />
280
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2046875" />
281
+ <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
282
+ <window_info anchor="right" id="Database" order="3" />
283
+ <window_info anchor="bottom" id="Find" order="1" />
284
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
227
285
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
228
286
  <window_info id="Favorites" order="2" side_tool="true" />
229
287
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -233,7 +291,6 @@
233
291
  <window_info anchor="bottom" id="Messages" order="7" weight="0.328877" />
234
292
  <window_info anchor="bottom" id="Message" order="0" />
235
293
  <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
236
- <window_info anchor="bottom" id="Find" order="1" />
237
294
  </layout>
238
295
  </component>
239
296
  <component name="TypeScriptGeneratedFilesManager">
@@ -243,7 +300,31 @@
243
300
  <option name="myLimit" value="2678400000" />
244
301
  </component>
245
302
  <component name="editorHistoryManager">
246
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway.rb">
303
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb">
304
+ <provider selected="true" editor-type-id="text-editor">
305
+ <state relative-caret-position="418">
306
+ <caret line="19" column="19" selection-start-line="19" selection-start-column="19" selection-end-line="19" selection-end-column="19" />
307
+ </state>
308
+ </provider>
309
+ </entry>
310
+ <entry file="file://$PROJECT_DIR$/for-all-payment-gateway.gemspec">
311
+ <provider selected="true" editor-type-id="text-editor">
312
+ <state relative-caret-position="110">
313
+ <caret line="5" column="32" lean-forward="true" selection-start-line="5" selection-start-column="32" selection-end-line="5" selection-end-column="32" />
314
+ </state>
315
+ </provider>
316
+ </entry>
317
+ <entry file="file://$PROJECT_DIR$/README.md">
318
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
319
+ <state split_layout="SPLIT">
320
+ <first_editor relative-caret-position="682">
321
+ <caret line="31" selection-start-line="31" selection-end-line="31" />
322
+ </first_editor>
323
+ <second_editor />
324
+ </state>
325
+ </provider>
326
+ </entry>
327
+ <entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
247
328
  <provider selected="true" editor-type-id="text-editor">
248
329
  <state relative-caret-position="110">
249
330
  <caret line="5" column="44" selection-start-line="5" selection-start-column="44" selection-end-line="5" selection-end-column="44" />
@@ -278,9 +359,7 @@
278
359
  </state>
279
360
  </provider>
280
361
  </entry>
281
- <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb">
282
- <provider selected="true" editor-type-id="text-editor" />
283
- </entry>
362
+ <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb" />
284
363
  <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
285
364
  <provider selected="true" editor-type-id="text-editor">
286
365
  <state relative-caret-position="308">
@@ -288,7 +367,7 @@
288
367
  </state>
289
368
  </provider>
290
369
  </entry>
291
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway.rb">
370
+ <entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
292
371
  <provider selected="true" editor-type-id="text-editor">
293
372
  <state relative-caret-position="110">
294
373
  <caret line="5" column="44" selection-start-line="5" selection-start-column="44" selection-end-line="5" selection-end-column="44" />
@@ -309,9 +388,7 @@
309
388
  </state>
310
389
  </provider>
311
390
  </entry>
312
- <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb">
313
- <provider selected="true" editor-type-id="text-editor" />
314
- </entry>
391
+ <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb" />
315
392
  <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb">
316
393
  <provider selected="true" editor-type-id="text-editor">
317
394
  <state relative-caret-position="440">
@@ -319,7 +396,7 @@
319
396
  </state>
320
397
  </provider>
321
398
  </entry>
322
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway.rb">
399
+ <entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
323
400
  <provider selected="true" editor-type-id="text-editor">
324
401
  <state relative-caret-position="110">
325
402
  <caret line="5" column="44" selection-start-line="5" selection-start-column="44" selection-end-line="5" selection-end-column="44" />
@@ -340,9 +417,7 @@
340
417
  </state>
341
418
  </provider>
342
419
  </entry>
343
- <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb">
344
- <provider selected="true" editor-type-id="text-editor" />
345
- </entry>
420
+ <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb" />
346
421
  <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
347
422
  <provider selected="true" editor-type-id="text-editor">
348
423
  <state relative-caret-position="528">
@@ -350,16 +425,14 @@
350
425
  </state>
351
426
  </provider>
352
427
  </entry>
353
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway.rb">
428
+ <entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
354
429
  <provider selected="true" editor-type-id="text-editor">
355
430
  <state relative-caret-position="110">
356
431
  <caret line="5" column="44" selection-start-line="5" selection-start-column="44" selection-end-line="5" selection-end-column="44" />
357
432
  </state>
358
433
  </provider>
359
434
  </entry>
360
- <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb">
361
- <provider selected="true" editor-type-id="text-editor" />
362
- </entry>
435
+ <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb" />
363
436
  <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
364
437
  <provider selected="true" editor-type-id="text-editor">
365
438
  <state relative-caret-position="176">
@@ -367,7 +440,7 @@
367
440
  </state>
368
441
  </provider>
369
442
  </entry>
370
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway.rb">
443
+ <entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
371
444
  <provider selected="true" editor-type-id="text-editor">
372
445
  <state relative-caret-position="66">
373
446
  <caret line="3" column="23" selection-start-line="3" selection-start-column="23" selection-end-line="3" selection-end-column="23" />
@@ -440,61 +513,83 @@
440
513
  </state>
441
514
  </provider>
442
515
  </entry>
443
- <entry file="file://$PROJECT_DIR$/Gemfile">
516
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/teste.rb" />
517
+ <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb" />
518
+ <entry file="file://$PROJECT_DIR$/lib/for/all/payment/gateway.rb" />
519
+ <entry file="file://$PROJECT_DIR$/README.md">
520
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
521
+ <state split_layout="SPLIT">
522
+ <first_editor relative-caret-position="330">
523
+ <caret line="15" column="11" selection-start-line="15" selection-start-column="11" selection-end-line="15" selection-end-column="11" />
524
+ </first_editor>
525
+ <second_editor />
526
+ </state>
527
+ </provider>
528
+ </entry>
529
+ <entry file="file://$PROJECT_DIR$/.gitignore">
444
530
  <provider selected="true" editor-type-id="text-editor" />
445
531
  </entry>
446
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/teste.rb" />
447
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
532
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb">
448
533
  <provider selected="true" editor-type-id="text-editor">
449
- <state relative-caret-position="-619">
450
- <caret line="14" column="25" selection-start-line="14" selection-start-column="25" selection-end-line="14" selection-end-column="25" />
534
+ <state relative-caret-position="682">
535
+ <caret line="31" column="15" selection-start-line="31" selection-start-column="15" selection-end-line="31" selection-end-column="15" />
451
536
  </state>
452
537
  </provider>
453
538
  </entry>
454
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway.rb">
539
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
455
540
  <provider selected="true" editor-type-id="text-editor">
456
- <state relative-caret-position="110">
457
- <caret line="5" column="45" selection-start-line="5" selection-start-column="45" selection-end-line="5" selection-end-column="45" />
541
+ <state relative-caret-position="544">
542
+ <caret line="63" column="15" selection-start-line="63" selection-start-column="15" selection-end-line="63" selection-end-column="15" />
458
543
  </state>
459
544
  </provider>
460
545
  </entry>
461
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all.rb">
546
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb">
462
547
  <provider selected="true" editor-type-id="text-editor">
463
- <state relative-caret-position="462">
464
- <caret line="21" column="8" selection-start-line="21" selection-start-column="8" selection-end-line="21" selection-end-column="8" />
548
+ <state relative-caret-position="286">
549
+ <caret line="13" column="15" selection-start-line="13" selection-start-column="15" selection-end-line="13" selection-end-column="15" />
465
550
  </state>
466
551
  </provider>
467
552
  </entry>
468
553
  <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb">
469
554
  <provider selected="true" editor-type-id="text-editor">
470
- <state relative-caret-position="60">
471
- <caret line="8" column="25" selection-start-line="8" selection-start-column="25" selection-end-line="8" selection-end-column="25" />
555
+ <state relative-caret-position="22">
556
+ <caret line="1" column="16" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
472
557
  </state>
473
558
  </provider>
474
559
  </entry>
475
- <entry file="file://$PROJECT_DIR$/spec/payment_gateway/for_all/vault.rb">
560
+ <entry file="file://$PROJECT_DIR$/Gemfile">
476
561
  <provider selected="true" editor-type-id="text-editor" />
477
562
  </entry>
478
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb">
563
+ <entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
479
564
  <provider selected="true" editor-type-id="text-editor">
480
- <state relative-caret-position="88">
481
- <caret line="4" column="6" selection-start-line="4" selection-start-column="6" selection-end-line="4" selection-end-column="6" />
565
+ <state relative-caret-position="110">
566
+ <caret line="5" column="8" selection-start-line="5" selection-start-column="8" selection-end-line="5" selection-end-column="8" />
482
567
  </state>
483
568
  </provider>
484
569
  </entry>
485
- <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb">
570
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all.rb">
486
571
  <provider selected="true" editor-type-id="text-editor">
487
- <state relative-caret-position="418">
488
- <caret line="19" column="19" selection-start-line="19" selection-start-column="19" selection-end-line="19" selection-end-column="19" />
572
+ <state relative-caret-position="484">
573
+ <caret line="22" column="32" selection-start-line="22" selection-start-column="32" selection-end-line="22" selection-end-column="32" />
574
+ </state>
575
+ </provider>
576
+ </entry>
577
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb">
578
+ <provider selected="true" editor-type-id="text-editor">
579
+ <state relative-caret-position="3297">
580
+ <caret line="3024" column="6" selection-start-line="3024" selection-start-column="6" selection-end-line="3024" selection-end-column="6" />
489
581
  </state>
490
582
  </provider>
491
583
  </entry>
492
584
  <entry file="file://$PROJECT_DIR$/for-all-payment-gateway.gemspec">
493
585
  <provider selected="true" editor-type-id="text-editor">
494
- <state relative-caret-position="110">
495
- <caret line="5" column="32" lean-forward="true" selection-start-line="5" selection-start-column="32" selection-end-line="5" selection-end-column="32" />
586
+ <state relative-caret-position="44">
587
+ <caret line="2" column="29" selection-start-line="2" selection-start-column="29" selection-end-line="2" selection-end-column="29" />
496
588
  </state>
497
589
  </provider>
498
590
  </entry>
591
+ <entry file="file://$PROJECT_DIR$/lib/payment_gateway/version.rb">
592
+ <provider selected="true" editor-type-id="text-editor" />
593
+ </entry>
499
594
  </component>
500
595
  </project>
data/Gemfile.lock CHANGED
@@ -1,26 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- for-all-payment-gateway (0.1.0)
4
+ for-all-payment-gateway (0.1.1)
5
5
  activesupport (>= 3.0)
6
+ credit_card_validations (~> 3.4)
6
7
  http (~> 3.0)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- activesupport (5.2.1)
12
+ activemodel (5.2.2)
13
+ activesupport (= 5.2.2)
14
+ activesupport (5.2.2)
12
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
16
  i18n (>= 0.7, < 2)
14
17
  minitest (~> 5.1)
15
18
  tzinfo (~> 1.1)
16
- addressable (2.5.2)
19
+ addressable (2.6.0)
17
20
  public_suffix (>= 2.0.2, < 4.0)
18
- byebug (10.0.2)
19
- coderay (1.1.2)
20
- concurrent-ruby (1.0.5)
21
+ concurrent-ruby (1.1.4)
22
+ crack (0.4.3)
23
+ safe_yaml (~> 1.0.0)
24
+ credit_card_validations (3.5.0)
25
+ activemodel (>= 3, <= 6)
26
+ activesupport (>= 3, <= 6)
21
27
  diff-lcs (1.3)
22
28
  domain_name (0.5.20180417)
23
29
  unf (>= 0.0.5, < 1.0.0)
30
+ hashdiff (0.3.8)
24
31
  http (3.3.0)
25
32
  addressable (~> 2.3)
26
33
  http-cookie (~> 1.0)
@@ -30,18 +37,10 @@ GEM
30
37
  domain_name (~> 0.5)
31
38
  http-form_data (2.1.1)
32
39
  http_parser.rb (0.6.0)
33
- i18n (1.1.0)
40
+ i18n (1.5.3)
34
41
  concurrent-ruby (~> 1.0)
35
- method_source (0.9.0)
36
42
  minitest (5.11.3)
37
- pry (0.11.3)
38
- coderay (~> 1.1.0)
39
- method_source (~> 0.9.0)
40
- pry-byebug (3.6.0)
41
- byebug (~> 10.0)
42
- pry (~> 0.10)
43
43
  public_suffix (3.0.3)
44
- rake (10.5.0)
45
44
  rspec (3.8.0)
46
45
  rspec-core (~> 3.8.0)
47
46
  rspec-expectations (~> 3.8.0)
@@ -55,22 +54,25 @@ GEM
55
54
  diff-lcs (>= 1.2.0, < 2.0)
56
55
  rspec-support (~> 3.8.0)
57
56
  rspec-support (3.8.0)
57
+ safe_yaml (1.0.4)
58
58
  thread_safe (0.3.6)
59
59
  tzinfo (1.2.5)
60
60
  thread_safe (~> 0.1)
61
61
  unf (0.1.4)
62
62
  unf_ext
63
63
  unf_ext (0.0.7.5)
64
+ webmock (3.5.1)
65
+ addressable (>= 2.3.6)
66
+ crack (>= 0.3.2)
67
+ hashdiff
64
68
 
65
69
  PLATFORMS
66
70
  ruby
67
71
 
68
72
  DEPENDENCIES
69
- bundler (~> 1.17.a)
70
73
  for-all-payment-gateway!
71
- pry-byebug (~> 3.5)
72
- rake (~> 10.0)
73
- rspec (~> 3.0)
74
+ rspec (~> 3.6)
75
+ webmock (~> 3.1)
74
76
 
75
77
  BUNDLED WITH
76
- 1.17.0.pre.1
78
+ 1.17.1
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- # For::All::Payment::Gateway
1
+ # 4All Payment Gateway SDK
2
+ https://4all.com/
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/for/all/payment/gateway`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
4
+ Easily integrate with 4All Pagamentos Digitais.
6
5
 
7
6
  ## Installation
8
7
 
@@ -14,7 +13,7 @@ gem 'for-all-payment-gateway'
14
13
 
15
14
  And then execute:
16
15
 
17
- $ bundle
16
+ $ bundle install
18
17
 
19
18
  Or install it yourself as:
20
19
 
@@ -22,22 +21,14 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
24
+ PaymentGateway::ForAll.configure do |config|
25
+ config.merchant_key = your_merchant_key
26
+ end
32
27
 
33
28
  ## Contributing
34
29
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/for-all-payment-gateway. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
30
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jhon50/for-all-payment-gateway. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
31
 
37
32
  ## License
38
33
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
-
41
- ## Code of Conduct
42
-
43
- Everyone interacting in the For::All::Payment::Gateway project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/for-all-payment-gateway/blob/master/CODE_OF_CONDUCT.md).
34
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,11 +1,11 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
1
2
 
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "for/all/payment/gateway/version"
3
+ # Maintain your gem's version:
4
+ require "payment_gateway/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "for-all-payment-gateway"
8
- spec.version = '0.1.1'
8
+ spec.version = PaymentGateway::VERSION
9
9
  spec.authors = ["Jhonatan Teixeira"]
10
10
  spec.email = ["johnn_lds@hotmail.com"]
11
11
 
@@ -25,19 +25,17 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  # Specify which files should be added to the gem when it is released.
27
27
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
- end
31
- spec.bindir = "exe"
32
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
- spec.require_paths = ["lib"]
34
28
 
35
- spec.add_runtime_dependency("activesupport", ">=3.0")
29
+
30
+ spec.require_paths = ["lib"]
31
+ spec.files = `git ls-files`.split("\n")
32
+ spec.required_ruby_version = '>= 2.3.4'
36
33
 
37
34
  spec.add_runtime_dependency("http", "~> 3.0")
35
+ spec.add_runtime_dependency("activesupport", ">=3.0")
36
+ spec.add_runtime_dependency("credit_card_validations", "~>3.4")
38
37
 
39
- spec.add_development_dependency "bundler", "~> 1.17.a"
40
- spec.add_development_dependency "rake", "~> 10.0"
41
- spec.add_development_dependency "rspec", "~> 3.0"
42
- spec.add_development_dependency("pry-byebug", "~>3.5")
38
+ spec.add_development_dependency("rspec", "~>3.6")
39
+ spec.add_development_dependency("webmock", "~>3.1")
40
+ # spec.add_development_dependency("pry-byebug", "~>3.5")
43
41
  end
@@ -1,22 +1,18 @@
1
1
  require 'http'
2
- require 'pry-rails'
3
2
  module PaymentGateway
4
3
  module ForAll
5
4
  class Base
6
5
  class MerchantKeyNotFound < StandardError; end
7
6
  class GatewayError < StandardError; end
8
7
 
9
- API_URL = 'https://gateway.homolog-interna.4all.com'
10
-
11
8
  def initialize
12
- @merchant_key = PaymentGateway::ForAll.configuration.merchant_key
13
- raise MerchantKeyNotFound if @merchant_key.blank?
9
+ raise MerchantKeyNotFound if PaymentGateway::ForAll.configuration.merchant_key.blank?
14
10
  end
15
11
 
16
12
  protected
17
13
 
18
14
  def request(method, url, options={ body: {}, params: {} })
19
- options[:body].merge!({'merchantKey': @merchant_key})
15
+ options[:body].merge!({'merchantKey': PaymentGateway::ForAll.configuration.merchant_key})
20
16
  response = HTTP.
21
17
  headers('Content-Type' => 'application/json').
22
18
  send(method, url, json: options[:body].with_indifferent_access)
@@ -28,6 +24,10 @@ module PaymentGateway
28
24
  end
29
25
  end
30
26
 
27
+ def api_url
28
+ PaymentGateway::ForAll.configuration.environment
29
+ end
30
+
31
31
  def access_key
32
32
  access_key = PaymentGateway::ForAll.configuration.access_key
33
33
  access_key.blank? ? Vault.new.request_key : access_key
@@ -25,11 +25,11 @@ module PaymentGateway
25
25
  private
26
26
 
27
27
  def endpoint_nonce
28
- API_URL + '/prepareCard'
28
+ api_url + '/prepareCard'
29
29
  end
30
30
 
31
31
  def endpoint_token
32
- API_URL + '/createCardToken'
32
+ api_url + '/createCardToken'
33
33
  end
34
34
 
35
35
  def build_card_body
@@ -57,11 +57,11 @@ module PaymentGateway
57
57
  private
58
58
 
59
59
  def endpoint_create
60
- API_URL + '/createTransaction'
60
+ api_url + '/createTransaction'
61
61
  end
62
62
 
63
63
  def endpoint_capture
64
- API_URL + '/captureTransaction'
64
+ api_url + '/captureTransaction'
65
65
  end
66
66
  end
67
67
  end
@@ -11,7 +11,7 @@ module PaymentGateway
11
11
  private
12
12
 
13
13
  def endpoint
14
- API_URL + '/requestVaultKey'
14
+ api_url + '/requestVaultKey'
15
15
  end
16
16
  end
17
17
  end
@@ -0,0 +1,3 @@
1
+ module PaymentGateway
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,14 @@
1
+ require "bundler/setup"
2
+ require "for/all/payment/gateway"
3
+
4
+ RSpec.configure do |config|
5
+ # Enable flags like --only-failures and --next-failure
6
+ config.example_status_persistence_file_path = ".rspec_status"
7
+
8
+ # Disable RSpec exposing methods globally on `Module` and `main`
9
+ config.disable_monkey_patching!
10
+
11
+ config.expect_with :rspec do |c|
12
+ c.syntax = :expect
13
+ end
14
+ end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: for-all-payment-gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jhonatan Teixeira
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-11 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '3.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '3.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: http
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -39,61 +25,61 @@ dependencies:
39
25
  - !ruby/object:Gem::Version
40
26
  version: '3.0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: bundler
28
+ name: activesupport
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - "~>"
31
+ - - ">="
46
32
  - !ruby/object:Gem::Version
47
- version: 1.17.a
48
- type: :development
33
+ version: '3.0'
34
+ type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - "~>"
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
- version: 1.17.a
40
+ version: '3.0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: rake
42
+ name: credit_card_validations
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '10.0'
62
- type: :development
47
+ version: '3.4'
48
+ type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '10.0'
54
+ version: '3.4'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '3.0'
61
+ version: '3.6'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '3.0'
68
+ version: '3.6'
83
69
  - !ruby/object:Gem::Dependency
84
- name: pry-byebug
70
+ name: webmock
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '3.5'
75
+ version: '3.1'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '3.5'
82
+ version: '3.1'
97
83
  description: Easy integration with 4All payment gateway
98
84
  email:
99
85
  - johnn_lds@hotmail.com
@@ -118,16 +104,15 @@ files:
118
104
  - Rakefile
119
105
  - bin/console
120
106
  - bin/setup
121
- - for-all-payment-gateway-0.1.0.gem
122
107
  - for-all-payment-gateway.gemspec
123
- - lib/for/all/payment/gateway.rb
124
- - lib/for/all/payment/gateway/version.rb
125
- - lib/payment_gateway.rb
108
+ - lib/for-all-payment-gateway.rb
126
109
  - lib/payment_gateway/for_all.rb
127
110
  - lib/payment_gateway/for_all/base.rb
128
111
  - lib/payment_gateway/for_all/card.rb
129
112
  - lib/payment_gateway/for_all/transaction.rb
130
113
  - lib/payment_gateway/for_all/vault.rb
114
+ - lib/payment_gateway/version.rb
115
+ - spec/spec_helper.rb
131
116
  homepage: http://github.com/jhon50
132
117
  licenses:
133
118
  - MIT
@@ -140,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
125
  requirements:
141
126
  - - ">="
142
127
  - !ruby/object:Gem::Version
143
- version: '0'
128
+ version: 2.3.4
144
129
  required_rubygems_version: !ruby/object:Gem::Requirement
145
130
  requirements:
146
131
  - - ">="
Binary file
@@ -1,9 +0,0 @@
1
- module For
2
- module All
3
- module Payment
4
- module Gateway
5
- VERSION = "0.1.0"
6
- end
7
- end
8
- end
9
- end
@@ -1,12 +0,0 @@
1
- require "for/all/payment/gateway/version"
2
-
3
- module For
4
- module All
5
- module Payment
6
- module Gateway
7
- class Error < StandardError; end
8
- # Your code goes here...
9
- end
10
- end
11
- end
12
- end