Browse Source

2.0

tags/2.0
0nepeop1e 4 years ago
parent
commit
99daa0ff8a
5 changed files with 102 additions and 47 deletions
  1. 12
    0
      .idea/laravel-payment-dummy.iml
  2. 34
    22
      .idea/php.xml
  3. 43
    22
      .idea/workspace.xml
  4. 1
    1
      composer.json
  5. 12
    2
      src/DummyPayDriver.php

+ 12
- 0
.idea/laravel-payment-dummy.iml View File

7
       <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
7
       <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
8
       <excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
8
       <excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
9
       <excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/inflector" />
9
       <excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/inflector" />
10
+      <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/collections" />
10
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/contracts" />
11
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/contracts" />
11
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/filesystem" />
12
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/filesystem" />
12
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/http" />
13
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/http" />
14
+      <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/macroable" />
13
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/session" />
15
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/session" />
14
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/support" />
16
       <excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/support" />
15
       <excludeFolder url="file://$MODULE_DIR$/vendor/mirfalah/laravel-payment" />
17
       <excludeFolder url="file://$MODULE_DIR$/vendor/mirfalah/laravel-payment" />
16
       <excludeFolder url="file://$MODULE_DIR$/vendor/nesbot/carbon" />
18
       <excludeFolder url="file://$MODULE_DIR$/vendor/nesbot/carbon" />
17
       <excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/random_compat" />
19
       <excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/random_compat" />
20
+      <excludeFolder url="file://$MODULE_DIR$/vendor/phpdocumentor/reflection-common" />
21
+      <excludeFolder url="file://$MODULE_DIR$/vendor/phpdocumentor/reflection-docblock" />
22
+      <excludeFolder url="file://$MODULE_DIR$/vendor/phpdocumentor/type-resolver" />
18
       <excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
23
       <excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
19
       <excludeFolder url="file://$MODULE_DIR$/vendor/psr/event-dispatcher" />
24
       <excludeFolder url="file://$MODULE_DIR$/vendor/psr/event-dispatcher" />
20
       <excludeFolder url="file://$MODULE_DIR$/vendor/psr/log" />
25
       <excludeFolder url="file://$MODULE_DIR$/vendor/psr/log" />
24
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher" />
29
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher" />
25
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher-contracts" />
30
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher-contracts" />
26
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/finder" />
31
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/finder" />
32
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-client-contracts" />
27
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-foundation" />
33
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-foundation" />
28
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-kernel" />
34
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-kernel" />
29
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/mime" />
35
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/mime" />
30
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-ctype" />
36
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-ctype" />
37
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-grapheme" />
31
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-idn" />
38
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-idn" />
32
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-normalizer" />
39
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-normalizer" />
33
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
40
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
35
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php72" />
42
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php72" />
36
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php73" />
43
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php73" />
37
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php80" />
44
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php80" />
45
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/property-access" />
46
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/property-info" />
47
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/serializer" />
48
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/string" />
38
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation" />
49
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation" />
39
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation-contracts" />
50
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation-contracts" />
40
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/var-dumper" />
51
       <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/var-dumper" />
41
       <excludeFolder url="file://$MODULE_DIR$/vendor/voku/portable-ascii" />
52
       <excludeFolder url="file://$MODULE_DIR$/vendor/voku/portable-ascii" />
53
+      <excludeFolder url="file://$MODULE_DIR$/vendor/webmozart/assert" />
42
     </content>
54
     </content>
43
     <orderEntry type="inheritedJdk" />
55
     <orderEntry type="inheritedJdk" />
44
     <orderEntry type="sourceFolder" forTests="false" />
56
     <orderEntry type="sourceFolder" forTests="false" />

+ 34
- 22
.idea/php.xml View File

2
 <project version="4">
2
 <project version="4">
3
   <component name="PhpIncludePathManager">
3
   <component name="PhpIncludePathManager">
4
     <include_path>
4
     <include_path>
5
-      <path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
6
-      <path value="$PROJECT_DIR$/vendor/mirfalah/laravel-payment" />
7
-      <path value="$PROJECT_DIR$/vendor/psr/log" />
8
       <path value="$PROJECT_DIR$/vendor/psr/container" />
5
       <path value="$PROJECT_DIR$/vendor/psr/container" />
9
       <path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
6
       <path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
10
       <path value="$PROJECT_DIR$/vendor/psr/event-dispatcher" />
7
       <path value="$PROJECT_DIR$/vendor/psr/event-dispatcher" />
11
-      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher" />
12
-      <path value="$PROJECT_DIR$/vendor/symfony/var-dumper" />
13
-      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher-contracts" />
14
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-idn" />
15
-      <path value="$PROJECT_DIR$/vendor/symfony/translation" />
16
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
17
-      <path value="$PROJECT_DIR$/vendor/symfony/mime" />
8
+      <path value="$PROJECT_DIR$/vendor/psr/log" />
18
       <path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
9
       <path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
19
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php73" />
20
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-normalizer" />
21
-      <path value="$PROJECT_DIR$/vendor/composer" />
22
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
23
       <path value="$PROJECT_DIR$/vendor/voku/portable-ascii" />
10
       <path value="$PROJECT_DIR$/vendor/voku/portable-ascii" />
24
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
11
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-idn" />
12
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-normalizer" />
25
       <path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
13
       <path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
26
-      <path value="$PROJECT_DIR$/vendor/symfony/http-kernel" />
27
-      <path value="$PROJECT_DIR$/vendor/symfony/finder" />
28
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php70" />
29
-      <path value="$PROJECT_DIR$/vendor/illuminate/http" />
14
+      <path value="$PROJECT_DIR$/vendor/symfony/string" />
15
+      <path value="$PROJECT_DIR$/vendor/symfony/serializer" />
30
       <path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
16
       <path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
17
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php73" />
18
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
19
+      <path value="$PROJECT_DIR$/vendor/symfony/mime" />
20
+      <path value="$PROJECT_DIR$/vendor/symfony/http-client-contracts" />
21
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
22
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
23
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php70" />
24
+      <path value="$PROJECT_DIR$/vendor/symfony/finder" />
25
+      <path value="$PROJECT_DIR$/vendor/symfony/property-access" />
26
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-grapheme" />
27
+      <path value="$PROJECT_DIR$/vendor/symfony/http-kernel" />
28
+      <path value="$PROJECT_DIR$/vendor/symfony/property-info" />
29
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php72" />
30
+      <path value="$PROJECT_DIR$/vendor/symfony/var-dumper" />
31
+      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher-contracts" />
32
+      <path value="$PROJECT_DIR$/vendor/symfony/error-handler" />
33
+      <path value="$PROJECT_DIR$/vendor/symfony/translation" />
31
       <path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
34
       <path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
35
+      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher" />
36
+      <path value="$PROJECT_DIR$/vendor/mirfalah/laravel-payment" />
37
+      <path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
38
+      <path value="$PROJECT_DIR$/vendor/webmozart/assert" />
39
+      <path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
40
+      <path value="$PROJECT_DIR$/vendor/illuminate/macroable" />
41
+      <path value="$PROJECT_DIR$/vendor/illuminate/http" />
32
       <path value="$PROJECT_DIR$/vendor/illuminate/filesystem" />
42
       <path value="$PROJECT_DIR$/vendor/illuminate/filesystem" />
33
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php72" />
34
       <path value="$PROJECT_DIR$/vendor/illuminate/support" />
43
       <path value="$PROJECT_DIR$/vendor/illuminate/support" />
35
       <path value="$PROJECT_DIR$/vendor/illuminate/session" />
44
       <path value="$PROJECT_DIR$/vendor/illuminate/session" />
36
-      <path value="$PROJECT_DIR$/vendor/symfony/error-handler" />
37
       <path value="$PROJECT_DIR$/vendor/illuminate/contracts" />
45
       <path value="$PROJECT_DIR$/vendor/illuminate/contracts" />
38
-      <path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
46
+      <path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-docblock" />
47
+      <path value="$PROJECT_DIR$/vendor/illuminate/collections" />
48
+      <path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-common" />
49
+      <path value="$PROJECT_DIR$/vendor/phpdocumentor/type-resolver" />
50
+      <path value="$PROJECT_DIR$/vendor/composer" />
39
     </include_path>
51
     </include_path>
40
   </component>
52
   </component>
41
   <component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
53
   <component name="PhpProjectSharedConfiguration" php_language_level="7.1" />

+ 43
- 22
.idea/workspace.xml View File

20
   </component>
20
   </component>
21
   <component name="ChangeListManager">
21
   <component name="ChangeListManager">
22
     <list default="true" id="d34cafd0-eade-4b43-97b9-dd7f3a1eae86" name="Default Changelist" comment="">
22
     <list default="true" id="d34cafd0-eade-4b43-97b9-dd7f3a1eae86" name="Default Changelist" comment="">
23
+      <change beforePath="$PROJECT_DIR$/.idea/laravel-payment-dummy.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/laravel-payment-dummy.iml" afterDir="false" />
24
+      <change beforePath="$PROJECT_DIR$/.idea/php.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/php.xml" afterDir="false" />
23
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
25
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
26
+      <change beforePath="$PROJECT_DIR$/composer.json" beforeDir="false" afterPath="$PROJECT_DIR$/composer.json" afterDir="false" />
24
       <change beforePath="$PROJECT_DIR$/src/DummyPayDriver.php" beforeDir="false" afterPath="$PROJECT_DIR$/src/DummyPayDriver.php" afterDir="false" />
27
       <change beforePath="$PROJECT_DIR$/src/DummyPayDriver.php" beforeDir="false" afterPath="$PROJECT_DIR$/src/DummyPayDriver.php" afterDir="false" />
25
     </list>
28
     </list>
26
     <option name="SHOW_DIALOG" value="false" />
29
     <option name="SHOW_DIALOG" value="false" />
39
   </component>
42
   </component>
40
   <component name="PhpWorkspaceProjectConfiguration">
43
   <component name="PhpWorkspaceProjectConfiguration">
41
     <include_path>
44
     <include_path>
42
-      <path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
43
-      <path value="$PROJECT_DIR$/vendor/mirfalah/laravel-payment" />
44
-      <path value="$PROJECT_DIR$/vendor/psr/log" />
45
       <path value="$PROJECT_DIR$/vendor/psr/container" />
45
       <path value="$PROJECT_DIR$/vendor/psr/container" />
46
       <path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
46
       <path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
47
       <path value="$PROJECT_DIR$/vendor/psr/event-dispatcher" />
47
       <path value="$PROJECT_DIR$/vendor/psr/event-dispatcher" />
48
-      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher" />
49
-      <path value="$PROJECT_DIR$/vendor/symfony/var-dumper" />
50
-      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher-contracts" />
51
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-idn" />
52
-      <path value="$PROJECT_DIR$/vendor/symfony/translation" />
53
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
54
-      <path value="$PROJECT_DIR$/vendor/symfony/mime" />
48
+      <path value="$PROJECT_DIR$/vendor/psr/log" />
55
       <path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
49
       <path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
56
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php73" />
57
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-normalizer" />
58
-      <path value="$PROJECT_DIR$/vendor/composer" />
59
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
60
       <path value="$PROJECT_DIR$/vendor/voku/portable-ascii" />
50
       <path value="$PROJECT_DIR$/vendor/voku/portable-ascii" />
61
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
51
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-idn" />
52
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-normalizer" />
62
       <path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
53
       <path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
63
-      <path value="$PROJECT_DIR$/vendor/symfony/http-kernel" />
64
-      <path value="$PROJECT_DIR$/vendor/symfony/finder" />
65
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php70" />
66
-      <path value="$PROJECT_DIR$/vendor/illuminate/http" />
54
+      <path value="$PROJECT_DIR$/vendor/symfony/string" />
55
+      <path value="$PROJECT_DIR$/vendor/symfony/serializer" />
67
       <path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
56
       <path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
57
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php73" />
58
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
59
+      <path value="$PROJECT_DIR$/vendor/symfony/mime" />
60
+      <path value="$PROJECT_DIR$/vendor/symfony/http-client-contracts" />
61
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
62
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
63
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php70" />
64
+      <path value="$PROJECT_DIR$/vendor/symfony/finder" />
65
+      <path value="$PROJECT_DIR$/vendor/symfony/property-access" />
66
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-grapheme" />
67
+      <path value="$PROJECT_DIR$/vendor/symfony/http-kernel" />
68
+      <path value="$PROJECT_DIR$/vendor/symfony/property-info" />
69
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php72" />
70
+      <path value="$PROJECT_DIR$/vendor/symfony/var-dumper" />
71
+      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher-contracts" />
72
+      <path value="$PROJECT_DIR$/vendor/symfony/error-handler" />
73
+      <path value="$PROJECT_DIR$/vendor/symfony/translation" />
68
       <path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
74
       <path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
75
+      <path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher" />
76
+      <path value="$PROJECT_DIR$/vendor/mirfalah/laravel-payment" />
77
+      <path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
78
+      <path value="$PROJECT_DIR$/vendor/webmozart/assert" />
79
+      <path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
80
+      <path value="$PROJECT_DIR$/vendor/illuminate/macroable" />
81
+      <path value="$PROJECT_DIR$/vendor/illuminate/http" />
69
       <path value="$PROJECT_DIR$/vendor/illuminate/filesystem" />
82
       <path value="$PROJECT_DIR$/vendor/illuminate/filesystem" />
70
-      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php72" />
71
       <path value="$PROJECT_DIR$/vendor/illuminate/support" />
83
       <path value="$PROJECT_DIR$/vendor/illuminate/support" />
72
       <path value="$PROJECT_DIR$/vendor/illuminate/session" />
84
       <path value="$PROJECT_DIR$/vendor/illuminate/session" />
73
-      <path value="$PROJECT_DIR$/vendor/symfony/error-handler" />
74
       <path value="$PROJECT_DIR$/vendor/illuminate/contracts" />
85
       <path value="$PROJECT_DIR$/vendor/illuminate/contracts" />
75
-      <path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
86
+      <path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-docblock" />
87
+      <path value="$PROJECT_DIR$/vendor/illuminate/collections" />
88
+      <path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-common" />
89
+      <path value="$PROJECT_DIR$/vendor/phpdocumentor/type-resolver" />
90
+      <path value="$PROJECT_DIR$/vendor/composer" />
76
     </include_path>
91
     </include_path>
77
   </component>
92
   </component>
78
   <component name="ProjectId" id="1htW5VaFbIHUzp9eSpkWJUVlqhl" />
93
   <component name="ProjectId" id="1htW5VaFbIHUzp9eSpkWJUVlqhl" />
85
     <property name="WebServerToolWindowFactoryState" value="false" />
100
     <property name="WebServerToolWindowFactoryState" value="false" />
86
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
101
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
87
     <property name="nodejs_package_manager_path" value="npm" />
102
     <property name="nodejs_package_manager_path" value="npm" />
103
+    <property name="php.override.implement.member.chooser.php.doc" value="NONE" />
88
     <property name="vue.rearranger.settings.migration" value="true" />
104
     <property name="vue.rearranger.settings.migration" value="true" />
89
   </component>
105
   </component>
90
   <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
106
   <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
98
       <workItem from="1600830687029" duration="3217000" />
114
       <workItem from="1600830687029" duration="3217000" />
99
       <workItem from="1600835177454" duration="172000" />
115
       <workItem from="1600835177454" duration="172000" />
100
       <workItem from="1600835569280" duration="44000" />
116
       <workItem from="1600835569280" duration="44000" />
117
+      <workItem from="1601966890356" duration="4888000" />
101
     </task>
118
     </task>
102
     <servers />
119
     <servers />
103
   </component>
120
   </component>
121
       <screen x="0" y="32" width="1920" height="1048" />
138
       <screen x="0" y="32" width="1920" height="1048" />
122
     </state>
139
     </state>
123
     <state x="717" y="383" width="475" height="391" key="#Composer/0.32.1920.1048@0.32.1920.1048" timestamp="1600831395575" />
140
     <state x="717" y="383" width="475" height="391" key="#Composer/0.32.1920.1048@0.32.1920.1048" timestamp="1600831395575" />
141
+    <state x="1080" y="227" width="389" height="624" key="#com.intellij.ide.util.MemberChooser" timestamp="1601971187393">
142
+      <screen x="0" y="30" width="2560" height="1020" />
143
+    </state>
144
+    <state x="1080" y="227" width="389" height="624" key="#com.intellij.ide.util.MemberChooser/0.30.2560.1020@0.30.2560.1020" timestamp="1601971187393" />
124
   </component>
145
   </component>
125
 </project>
146
 </project>

+ 1
- 1
composer.json View File

7
     "readme": "README.md",
7
     "readme": "README.md",
8
     "require": {
8
     "require": {
9
         "php": ">=7.1",
9
         "php": ">=7.1",
10
-        "mirfalah/laravel-payment": "^1.0"
10
+        "mirfalah/laravel-payment": "^2.0"
11
     },
11
     },
12
     "license": "Mirfalah-Tech",
12
     "license": "Mirfalah-Tech",
13
     "authors": [
13
     "authors": [

+ 12
- 2
src/DummyPayDriver.php View File

8
 use Illuminate\Support\Facades\Response as Res;
8
 use Illuminate\Support\Facades\Response as Res;
9
 use MirfalahTech\Laravel\Payment\Contracts\PayableEntity;
9
 use MirfalahTech\Laravel\Payment\Contracts\PayableEntity;
10
 use MirfalahTech\Laravel\Payment\Contracts\PaymentGatewayDriver;
10
 use MirfalahTech\Laravel\Payment\Contracts\PaymentGatewayDriver;
11
+use MirfalahTech\Laravel\Payment\Facade\Payment;
12
+use MirfalahTech\Laravel\Payment\Traits\BillStatusBoolean;
11
 use Symfony\Component\HttpFoundation\Response;
13
 use Symfony\Component\HttpFoundation\Response;
12
 
14
 
13
 class DummyPayDriver implements PaymentGatewayDriver
15
 class DummyPayDriver implements PaymentGatewayDriver
14
 {
16
 {
17
+    use BillStatusBoolean;
18
+
15
     /**
19
     /**
16
      * @var string
20
      * @var string
17
      */
21
      */
43
         $order_id = $request->query->get('order_id');
47
         $order_id = $request->query->get('order_id');
44
         if($request->query->has('status')){
48
         if($request->query->has('status')){
45
             $response = Res::redirectTo($this->return_url.'?'.http_build_query(['order_id' => $order_id, 'status' => 'success']));
49
             $response = Res::redirectTo($this->return_url.'?'.http_build_query(['order_id' => $order_id, 'status' => 'success']));
46
-            return $request->query->get('status') == 'success';
50
+            return true;
47
         } else {
51
         } else {
48
             /** @noinspection HtmlUnknownTarget */
52
             /** @noinspection HtmlUnknownTarget */
49
             $html = sprintf(
53
             $html = sprintf(
56
         }
60
         }
57
     }
61
     }
58
 
62
 
59
-    public function getBillIdFromRequest(Request $request){
63
+    public function getBillIdFromRequest(Request $request): ?string{
60
         return $request->query->get('order_id');
64
         return $request->query->get('order_id');
61
     }
65
     }
66
+
67
+    public function getBillStatus(Request $request): ?int
68
+    {
69
+        return $request->query->get('status') == 'success' ?
70
+            Payment::SUCCESS : Payment::FAILED;
71
+    }
62
 }
72
 }

Loading…
Cancel
Save