Skip to content

Commit

Permalink
Add the config for piano api url
Browse files Browse the repository at this point in the history
  • Loading branch information
progresivjose committed Jul 18, 2023
1 parent d97e454 commit 4f20122
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ The package expects the following values in your .env file
- PIANO_API_TOKEN
- PIANO_OAUTH_CLIENT_SECRET
- PIANO_AUTH_GUARD
- PIANO_API_URL
### Configuration
The package creates a *confi/piano.php* files, which stores all the confirgurations needed for the package, but the redirect_url value is set for sandbox and testing puposes, for production you must use https://id.tinypass.com/id
The package creates a *confi/piano.php* files, which stores all the confirgurations needed for the package, but the redirect_url value is set for sandbox and testing puposes, for production you must use https://id.tinypass.com/id
3 changes: 2 additions & 1 deletion src/Providers/PianoOauthProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public function register()
new PianoOauth(
config('piano.aid'),
config('piano.api_token'),
config('piano.oauth_client_secret')
config('piano.oauth_client_secret'),
config('piano.api_url')
)
);
}
Expand Down
1 change: 1 addition & 0 deletions src/configs/piano.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
'oauth_client_secret' => env('PIANO_OAUTH_CLIENT_SECRET', null),
'redirect_url' => 'https://sandbox.piano.io/id/',
'guard' => env('PIANO_AUTH_GUARD', 'web'),
'api_url' => env('PIANO_API_URL', 'https://sandbox.tinypass.com')
];

0 comments on commit 4f20122

Please sign in to comment.