Laravel specific composer package for SaltEdge API integration.
Add new git repository to the composer.json
configuration:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/TendoPayPlugins/laravel-saltedge-api.git"
}
]
}
Next run following command:
composer require tendopay/laravel-dragonpay-api
or add the dependency in your composer.json
and update composer dependencies:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/TendoPayPlugins/laravel-saltedge-api.git"
}
],
"require": {
"tendopay/laravel-saltedge-api": "develop"
}
}
composer update
or composer install
.
In laravel's .env file add following keys with proper values Which you can attain from SaltEdge, e.g.:
SALTEDGE_URL=
SALTEDGE_APP_ID=
SALTEDGE_SECRET=
SALTEDGE_PRIVATE_KEY_PATH=
// local or s3
SALTEDGE_STORAGE_MODE=
The package provides 5 new services that fetch data from SaltEdge's API:
AccountService
that provides integration with selected accounts endpoints of the APICategoryService
that provides integration with selected categories endpoint of the APICustomerService
that provides integration with selected customers endpoint of the APIProviderService
that provides integration with selected providers endpoint of the API
The package registers its own SaltEdgeServiceProvider
, so all the above services will be available right after installing the composer package.