Skip to content

Commit 88c9e51

Browse files
Merge pull request #14 from websoftwares/refactor-request-handling
Refactor request handling
2 parents cec1438 + 2026632 commit 88c9e51

21 files changed

Lines changed: 954 additions & 978 deletions

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# PHP PSR-2 Coding Standards
5+
# http://www.php-fig.org/psr/psr-2/
6+
7+
root = true
8+
9+
[*.php]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = space
15+
indent_size = 4

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
OST_KIT_API_KEY=YourApiKey
2+
OST_KIT_API_SECRET=YourSecretKey
3+
OST_KIT_API_ENDPOINT=https://playgroundapi.ost.com
4+
OST_KIT_API_V1_ENDPOINT=https://sandboxapi.ost.com/v1

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
vendor
22
docs
3-
composer.lock
3+
composer.lock
4+
.idea
5+
.env

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ php:
1717
- 7.0
1818
- 7.1
1919
- 7.2
20+
env:
21+
- BUILD_ENV=TRAVIS
2022
before_install:
2123
install:
2224
before_script:

README_V0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Install the latest stable version of the SDK:
3131
Require the Composer autoloader:
3232

3333
```php
34-
> require 'vendor/autoload.php';
34+
require 'vendor/autoload.php';
3535
```
3636

3737
Initialize the SDK object:
@@ -157,4 +157,4 @@ $getStatusParams = array();
157157
$getStatusParams['transaction_uuids'] = ['d8303e01-5ce0-401f-8ae4-d6a0bcdb2e24'];
158158
$response = $transactionKindService->getStatus($getStatusParams)->wait();
159159
var_dump($response);
160-
```
160+
```

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"guzzlehttp/guzzle": "~6.0"
1515
},
1616
"require-dev": {
17+
"vlucas/phpdotenv": "v2.4.0",
1718
"phpunit/phpunit": "^4"
1819
},
1920
"autoload": {

0 commit comments

Comments
 (0)