Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

TendoPayPlugins/laravel-saltedge-api

Repository files navigation

laravel-saltedge-api

Laravel specific composer package for SaltEdge API integration.

Installation

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.

Configuration

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=

What's included

The package provides 5 new services that fetch data from SaltEdge's API:

The package registers its own SaltEdgeServiceProvider, so all the above services will be available right after installing the composer package.