diff --git a/.travis.yml b/.travis.yml
index 24c2d6c..dc60255 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,7 @@
language: php
+sudo: false
+
php:
- 7.1
- 7.2
@@ -7,15 +9,20 @@ php:
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
diff --git a/README.md b/README.md
index 38f4438..53e261f 100644
--- a/README.md
+++ b/README.md
@@ -6,16 +6,17 @@
**Featured**
------
-- [Payme](http://payme.uz) - Merchant
-- [Click](http://click.uz) - Merchant
+- [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
+
## Installation
@@ -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:**
------
diff --git a/composer.json b/composer.json
index 929cf95..4e5a730 100644
--- a/composer.json
+++ b/composer.json
@@ -17,7 +17,6 @@
],
"require": {
"php": "^7.1",
- "goodoneuz/pay-uz": "^1.5",
"illuminate/support": "5.7.*|5.8.*"
},
"require-dev": {