for-all-payment-gateway 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +78 -57
- data/lib/payment_gateway/for_all/base.rb +1 -1
- data/lib/payment_gateway/for_all/transaction.rb +1 -1
- data/lib/payment_gateway/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5f53c271dd4f692cfd741f1a5d278fb3a9e0f745cbb79ff5fc70ec967e91c6
|
4
|
+
data.tar.gz: b8e4575009d6c7a5178a06c1caeee848a44db23e8a5f57db321f32aa25891f13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3b9484efb357996600c37d5e56b78e9c43e03e6fcdee2fe236328d237bad0cdffb6ddba785a2bb1c1aa1cb6636a36e77d7d4f40c850358ae94c76aac00488e3
|
7
|
+
data.tar.gz: 48dd11ee5916e91c2d7f1c1efcd4dd4b678998e48c78385232bce41f910058254e928277788eb038b9f7b7bba36eb700af24f5dd82233c24f7319d801ad9729c
|
data/.idea/workspace.xml
CHANGED
@@ -5,6 +5,8 @@
|
|
5
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/for_all/base.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb" afterDir="false" />
|
9
|
+
<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" />
|
8
10
|
</list>
|
9
11
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
10
12
|
<option name="TRACKING_ENABLED" value="true" />
|
@@ -27,11 +29,11 @@
|
|
27
29
|
</provider>
|
28
30
|
</entry>
|
29
31
|
</file>
|
30
|
-
<file leaf-file-name="base.rb" pinned="false" current-in-tab="
|
32
|
+
<file leaf-file-name="base.rb" pinned="false" current-in-tab="true">
|
31
33
|
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb">
|
32
34
|
<provider selected="true" editor-type-id="text-editor">
|
33
|
-
<state relative-caret-position="
|
34
|
-
<caret line="
|
35
|
+
<state relative-caret-position="429">
|
36
|
+
<caret line="22" selection-start-line="22" selection-end-line="22" />
|
35
37
|
</state>
|
36
38
|
</provider>
|
37
39
|
</entry>
|
@@ -44,36 +46,35 @@
|
|
44
46
|
<file leaf-file-name="for-all-payment-gateway.gemspec" pinned="false" current-in-tab="false">
|
45
47
|
<entry file="file://$PROJECT_DIR$/for-all-payment-gateway.gemspec">
|
46
48
|
<provider selected="true" editor-type-id="text-editor">
|
47
|
-
<state relative-caret-position="
|
48
|
-
<caret line="
|
49
|
+
<state relative-caret-position="154">
|
50
|
+
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
49
51
|
</state>
|
50
52
|
</provider>
|
51
53
|
</entry>
|
52
54
|
</file>
|
53
|
-
<file leaf-file-name="version.rb" pinned="false" current-in-tab="
|
55
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
54
56
|
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/version.rb">
|
55
|
-
<provider selected="true" editor-type-id="text-editor"
|
57
|
+
<provider selected="true" editor-type-id="text-editor">
|
58
|
+
<state relative-caret-position="44">
|
59
|
+
<caret line="2" column="3" selection-start-line="2" selection-start-column="3" selection-end-line="2" selection-end-column="3" />
|
60
|
+
</state>
|
61
|
+
</provider>
|
56
62
|
</entry>
|
57
63
|
</file>
|
58
64
|
<file leaf-file-name="vault.rb" pinned="false" current-in-tab="false">
|
59
65
|
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb">
|
60
66
|
<provider selected="true" editor-type-id="text-editor">
|
61
|
-
<state relative-caret-position="
|
62
|
-
<caret line="
|
67
|
+
<state relative-caret-position="198">
|
68
|
+
<caret line="9" selection-start-line="9" selection-end-line="9" />
|
63
69
|
</state>
|
64
70
|
</provider>
|
65
71
|
</entry>
|
66
72
|
</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
73
|
<file leaf-file-name="transaction.rb" pinned="false" current-in-tab="false">
|
73
74
|
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
|
74
75
|
<provider selected="true" editor-type-id="text-editor">
|
75
|
-
<state relative-caret-position="
|
76
|
-
<caret line="
|
76
|
+
<state relative-caret-position="396">
|
77
|
+
<caret line="18" column="37" selection-start-line="18" selection-start-column="37" selection-end-line="18" selection-end-column="37" />
|
77
78
|
</state>
|
78
79
|
</provider>
|
79
80
|
</entry>
|
@@ -128,11 +129,11 @@
|
|
128
129
|
<option value="$PROJECT_DIR$/lib/for-all-payment-gateway.rb" />
|
129
130
|
<option value="$PROJECT_DIR$/lib/payment_gateway/for_all.rb" />
|
130
131
|
<option value="$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb" />
|
131
|
-
<option value="$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb" />
|
132
132
|
<option value="$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb" />
|
133
|
-
<option value="$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb" />
|
134
|
-
<option value="$PROJECT_DIR$/for-all-payment-gateway.gemspec" />
|
135
133
|
<option value="$PROJECT_DIR$/lib/payment_gateway/version.rb" />
|
134
|
+
<option value="$PROJECT_DIR$/for-all-payment-gateway.gemspec" />
|
135
|
+
<option value="$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb" />
|
136
|
+
<option value="$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb" />
|
136
137
|
</list>
|
137
138
|
</option>
|
138
139
|
</component>
|
@@ -155,7 +156,6 @@
|
|
155
156
|
<foldersAlwaysOnTop value="true" />
|
156
157
|
</navigator>
|
157
158
|
<panes>
|
158
|
-
<pane id="Scope" />
|
159
159
|
<pane id="ProjectPane">
|
160
160
|
<subPane>
|
161
161
|
<expand>
|
@@ -179,10 +179,18 @@
|
|
179
179
|
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
180
180
|
<item name="payment_gateway" type="462c0819:PsiDirectoryNode" />
|
181
181
|
</path>
|
182
|
+
<path>
|
183
|
+
<item name="for-all-payment-gateway" type="b2602c69:ProjectViewProjectNode" />
|
184
|
+
<item name="for-all-payment-gateway" type="462c0819:PsiDirectoryNode" />
|
185
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
186
|
+
<item name="payment_gateway" type="462c0819:PsiDirectoryNode" />
|
187
|
+
<item name="for_all" type="462c0819:PsiDirectoryNode" />
|
188
|
+
</path>
|
182
189
|
</expand>
|
183
190
|
<select />
|
184
191
|
</subPane>
|
185
192
|
</pane>
|
193
|
+
<pane id="Scope" />
|
186
194
|
</panes>
|
187
195
|
</component>
|
188
196
|
<component name="PropertiesComponent">
|
@@ -260,30 +268,34 @@
|
|
260
268
|
<workItem from="1548349351829" duration="29000" />
|
261
269
|
<workItem from="1549039198478" duration="1158000" />
|
262
270
|
<workItem from="1549309619172" duration="2612000" />
|
263
|
-
<workItem from="1549466980157" duration="
|
271
|
+
<workItem from="1549466980157" duration="2705000" />
|
272
|
+
<workItem from="1549630732439" duration="874000" />
|
273
|
+
<workItem from="1550606528522" duration="370000" />
|
274
|
+
<workItem from="1550672385952" duration="206000" />
|
275
|
+
<workItem from="1550786637770" duration="1897000" />
|
276
|
+
<workItem from="1551992708977" duration="215000" />
|
264
277
|
</task>
|
265
278
|
<servers />
|
266
279
|
</component>
|
267
280
|
<component name="TimeTrackingManager">
|
268
|
-
<option name="totallyTimeSpent" value="
|
281
|
+
<option name="totallyTimeSpent" value="56735000" />
|
269
282
|
</component>
|
270
283
|
<component name="ToolWindowManager">
|
271
|
-
<frame x="0" y="0" width="1280" height="800" extended-state="
|
284
|
+
<frame x="0" y="0" width="1280" height="800" extended-state="0" />
|
272
285
|
<editor active="true" />
|
273
286
|
<layout>
|
287
|
+
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.19453125" />
|
274
288
|
<window_info anchor="bottom" id="TODO" order="6" />
|
289
|
+
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
275
290
|
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
|
291
|
+
<window_info anchor="right" id="Database" order="3" />
|
276
292
|
<window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
|
277
|
-
<window_info anchor="bottom" id="Run" order="2" weight="0.20588236" />
|
278
293
|
<window_info anchor="bottom" id="Version Control" order="7" />
|
279
|
-
<window_info anchor="bottom" id="
|
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" />
|
294
|
+
<window_info anchor="bottom" id="Run" order="2" weight="0.20588236" />
|
284
295
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
285
|
-
<window_info anchor="bottom" id="
|
296
|
+
<window_info anchor="bottom" id="Terminal" order="7" />
|
286
297
|
<window_info id="Favorites" order="2" side_tool="true" />
|
298
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
287
299
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
288
300
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
289
301
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
@@ -291,6 +303,7 @@
|
|
291
303
|
<window_info anchor="bottom" id="Messages" order="7" weight="0.328877" />
|
292
304
|
<window_info anchor="bottom" id="Message" order="0" />
|
293
305
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
306
|
+
<window_info anchor="bottom" id="Find" order="1" />
|
294
307
|
</layout>
|
295
308
|
</component>
|
296
309
|
<component name="TypeScriptGeneratedFilesManager">
|
@@ -526,40 +539,37 @@
|
|
526
539
|
</state>
|
527
540
|
</provider>
|
528
541
|
</entry>
|
529
|
-
<entry file="file://$PROJECT_DIR
|
542
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
530
543
|
<provider selected="true" editor-type-id="text-editor" />
|
531
544
|
</entry>
|
532
|
-
<entry file="file://$
|
545
|
+
<entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb">
|
533
546
|
<provider selected="true" editor-type-id="text-editor">
|
534
|
-
<state relative-caret-position="
|
535
|
-
<caret line="
|
547
|
+
<state relative-caret-position="3297">
|
548
|
+
<caret line="3024" column="6" selection-start-line="3024" selection-start-column="6" selection-end-line="3024" selection-end-column="6" />
|
536
549
|
</state>
|
537
550
|
</provider>
|
538
551
|
</entry>
|
539
|
-
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all
|
552
|
+
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all.rb">
|
540
553
|
<provider selected="true" editor-type-id="text-editor">
|
541
|
-
<state relative-caret-position="
|
542
|
-
<caret line="
|
554
|
+
<state relative-caret-position="484">
|
555
|
+
<caret line="22" column="32" selection-start-line="22" selection-start-column="32" selection-end-line="22" selection-end-column="32" />
|
543
556
|
</state>
|
544
557
|
</provider>
|
545
558
|
</entry>
|
546
|
-
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/
|
559
|
+
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/version.rb">
|
547
560
|
<provider selected="true" editor-type-id="text-editor">
|
548
|
-
<state relative-caret-position="
|
549
|
-
<caret line="
|
561
|
+
<state relative-caret-position="44">
|
562
|
+
<caret line="2" column="3" selection-start-line="2" selection-start-column="3" selection-end-line="2" selection-end-column="3" />
|
550
563
|
</state>
|
551
564
|
</provider>
|
552
565
|
</entry>
|
553
|
-
<entry file="file://$PROJECT_DIR$/
|
566
|
+
<entry file="file://$PROJECT_DIR$/for-all-payment-gateway.gemspec">
|
554
567
|
<provider selected="true" editor-type-id="text-editor">
|
555
|
-
<state relative-caret-position="
|
556
|
-
<caret line="
|
568
|
+
<state relative-caret-position="154">
|
569
|
+
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
557
570
|
</state>
|
558
571
|
</provider>
|
559
572
|
</entry>
|
560
|
-
<entry file="file://$PROJECT_DIR$/Gemfile">
|
561
|
-
<provider selected="true" editor-type-id="text-editor" />
|
562
|
-
</entry>
|
563
573
|
<entry file="file://$PROJECT_DIR$/lib/for-all-payment-gateway.rb">
|
564
574
|
<provider selected="true" editor-type-id="text-editor">
|
565
575
|
<state relative-caret-position="110">
|
@@ -567,29 +577,40 @@
|
|
567
577
|
</state>
|
568
578
|
</provider>
|
569
579
|
</entry>
|
570
|
-
<entry file="file://$PROJECT_DIR
|
580
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
571
581
|
<provider selected="true" editor-type-id="text-editor">
|
572
|
-
<state relative-caret-position="
|
573
|
-
<caret line="
|
582
|
+
<state relative-caret-position="242">
|
583
|
+
<caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
|
574
584
|
</state>
|
575
585
|
</provider>
|
576
586
|
</entry>
|
577
|
-
<entry file="file://$
|
587
|
+
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/vault.rb">
|
578
588
|
<provider selected="true" editor-type-id="text-editor">
|
579
|
-
<state relative-caret-position="
|
580
|
-
<caret line="
|
589
|
+
<state relative-caret-position="198">
|
590
|
+
<caret line="9" selection-start-line="9" selection-end-line="9" />
|
581
591
|
</state>
|
582
592
|
</provider>
|
583
593
|
</entry>
|
584
|
-
<entry file="file://$PROJECT_DIR$/
|
594
|
+
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/card.rb">
|
585
595
|
<provider selected="true" editor-type-id="text-editor">
|
586
|
-
<state relative-caret-position="
|
587
|
-
<caret line="
|
596
|
+
<state relative-caret-position="682">
|
597
|
+
<caret line="31" column="15" selection-start-line="31" selection-start-column="15" selection-end-line="31" selection-end-column="15" />
|
588
598
|
</state>
|
589
599
|
</provider>
|
590
600
|
</entry>
|
591
|
-
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/
|
592
|
-
<provider selected="true" editor-type-id="text-editor"
|
601
|
+
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/transaction.rb">
|
602
|
+
<provider selected="true" editor-type-id="text-editor">
|
603
|
+
<state relative-caret-position="396">
|
604
|
+
<caret line="18" column="37" selection-start-line="18" selection-start-column="37" selection-end-line="18" selection-end-column="37" />
|
605
|
+
</state>
|
606
|
+
</provider>
|
607
|
+
</entry>
|
608
|
+
<entry file="file://$PROJECT_DIR$/lib/payment_gateway/for_all/base.rb">
|
609
|
+
<provider selected="true" editor-type-id="text-editor">
|
610
|
+
<state relative-caret-position="429">
|
611
|
+
<caret line="22" selection-start-line="22" selection-end-line="22" />
|
612
|
+
</state>
|
613
|
+
</provider>
|
593
614
|
</entry>
|
594
615
|
</component>
|
595
616
|
</project>
|
@@ -19,7 +19,7 @@ module PaymentGateway
|
|
19
19
|
if response.status.eql?(200)
|
20
20
|
response.parse.with_indifferent_access
|
21
21
|
else
|
22
|
-
error_message = "#{response.status} - #{response.parse['
|
22
|
+
error_message = "#{response.status} - #{response.parse['error']['message']}"
|
23
23
|
raise GatewayError, error_message
|
24
24
|
end
|
25
25
|
end
|
@@ -10,6 +10,7 @@ module PaymentGateway
|
|
10
10
|
# "amount": 7500,
|
11
11
|
# "metaId": "random number, token or code",
|
12
12
|
# "overwriteMetaId": false,
|
13
|
+
# "softDescriptor": "Dr. Zeus Inc.",
|
13
14
|
# "paymentMethod": [
|
14
15
|
# {
|
15
16
|
# "cardNonce": "xxxxxxxxxxxxxxxxx",
|
@@ -17,7 +18,6 @@ module PaymentGateway
|
|
17
18
|
# "paymentMode": 1,
|
18
19
|
# "installmentType": 1,
|
19
20
|
# "installments": 1,
|
20
|
-
# "softDescriptor": "Dr. Zeus Inc.",
|
21
21
|
# "amount": 7500,
|
22
22
|
# "forceSplit": false
|
23
23
|
# }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: for-all-payment-gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jhonatan Teixeira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|