We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27655f8 commit 859723fCopy full SHA for 859723f
README.md
@@ -37,7 +37,16 @@ $response = $result->getResponse();
37
38
var_dump($response);
39
```
40
+### Instalation in Laravel
41
42
+``` php
43
+// Set the api, public key, provider and environment secret as follows in your .env file
44
+
45
+MPESA_API_KEY ="Your API Key";
46
+MPESA_PUBLIC_KEY='You Public Key'
47
+MPESA_ENV='test' // 'live' production environment
48
+MPESA_SERVICE_PROVIDER_CODE=171717
49
+```
50
### Testing
51
52
``` bash
composer.json
@@ -24,7 +24,9 @@
24
],
25
"require": {
26
"php": ">=7.3",
27
- "guzzlehttp/guzzle": "^7.0"
+ "guzzlehttp/guzzle": "^7.0",
28
+ "ext-curl": "*",
29
+ "ext-json": "*"
30
},
31
"require-dev": {
32
"phpunit/phpunit": "^9.3.3"
0 commit comments