glasswalllab / keypayconnector
Connection to keypay (Microsoft Business Central)
dev-main
2021-07-13 13:05 UTC
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.0
- league/oauth2-client: ^2.6
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-04-13 21:18:57 UTC
README
This package provides an integration (OAuth 2.0) to KeyPay.
Installation
You can install the package via composer:
composer require glasswalllab/keypayconnector
Usage
-
Setup Web App in Microsoft Azure AD to obtain required credentials.
-
Include the following variables in your .env
KEYPAY_COMPANY_NAME=YOUR_COMAPNY_NAME
KEYPAY_TENANT_ID=YOUR_TENANT_ID
KEYPAY_APP_ID=YOUR_APP_ID
KEYPAY_APP_SECRET=YOUR_APP_SECRET
KEYPAY_REDIRECT_URI=YOUR_REDIRECT_URKL
KEYPAY_PROVIDER=KEYPAY
KEYPAY_SCOPES='Financials.ReadWrite.All offline_access'
KEYPAY_AUTHORITY=https://login.microsoftonline.com/
KEYPAY_AUTHORISE_ENDPOINT=/oauth2/authorize?resource=https://api.businesscentral.dynamics.com
KEYPAY_TOKEN_ENDPOINT=/oauth2/token?resource=https://api.businesscentral.dynamics.com
KEYPAY_RESOURCE=https://api.businesscentral.dynamics.com
KEYPAY_BASE_API_URL=https://wiise.api.bc.dynamics.com/v2.0/
-
Run php artisan migrate to create the api_token database table
-
Optional: Export the welcome view blade file
php artisan vendor:publish --provider="glasswalllab\keypayconnector\KeypayConnectorServiceProvider" --tag="views"
Sample Usage (Laravel)
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email sreid@gwlab.com.au instead of using the issue tracker.