Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/goodoneuz/pay-uz
Browse files Browse the repository at this point in the history
  • Loading branch information
shaxzodbek-uzb committed Apr 11, 2019
2 parents eaf28ac + a80693f commit 75d031f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
language: php

sudo: false

php:
- 7.1
- 7.2
- 7.3

env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
- LARAVEL=5.7.*
- LARAVEL=5.8.*
- LARAVEL=dev-master

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
matrix:
fast_finish: true
exclude:
- php: 7.1
env: LARAVEL=dev-master
allow_failures:
- env: LARAVEL=dev-master

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
before_install:
- composer self-update || true
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader

after_script:
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
script: vendor/bin/phpunit --verbose
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@

**Featured**
------
- [Payme](http://payme.uz) - Merchant <img src="https://cdn.paycom.uz/documentation_assets/payme_01.png" alt="Payme" width="80"/>
- [Click](http://click.uz) - Merchant <img src="http://click.uz/wp-content/themes/click_theme/assets/img/logo.png" alt="Click" width="80"/>
- [Payme](http://payme.uz) - Merchant
- [Click](http://click.uz) - Merchant
- [Oson](http://click.uz) - Merchant
- [Uzcard](http://uzcard.uz) - Merchant
- [Paynet](http://paynet.uz) - Merchant

**Planned**
------
- Paynet
- Upay
- Oson
- Visa
- [Uzcard](http://uzcard.uz) - Merchant <img src="http://uzcard.uz/templates/uzcard_ordinary/images/logo-f.png" alt="UZCARD" width="80"/>


## Installation

Expand Down Expand Up @@ -43,9 +44,22 @@ php artisan db:seed --class="Goodoneuz\PayUz\database\seeds\PayUzSeeder"

## Usage
------
- Request handle: `PayUz::driver('payme')->redirect($model, $amount, $currency)`
- Redirect user: `PayUz::driver('payme')->handle()`
Placing routes for service in web.php

```php

//here comes requests from payment system
Route::any('/handle/{paysys}',function($paysys){
PayUz::driver($paysys)->handle();
});

//here user redirects to payment system
Route::any('/redirect/{paysys}/{user_id}/{amount}',function($paysys, $user_id, $amount){
$user = App\User::find($user_id);
$url = 'https://payment.uz';
PayUz::driver($paysys)->redirect($user, $amount, 860, $url);
});
```

**Exception:**
------
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
],
"require": {
"php": "^7.1",
"goodoneuz/pay-uz": "^1.5",
"illuminate/support": "5.7.*|5.8.*"
},
"require-dev": {
Expand Down

0 comments on commit 75d031f

Please sign in to comment.