mihkullorg/lhv-connect

LHV bank's CONNECT service for Laravel 5
5,470 10
Install
composer require mihkullorg/lhv-connect
Latest Version:2.0.1
PHP:^7.2
License:MIT
Last Updated:Apr 19, 2023
Links: GitHub  ·  Packagist
Maintainer: Mihkullorg

LHV CONNECT API package for Laravel 6

Quickstart

$ composer require mihkullorg/lhv-connect

NB! Service provider Mihkullorg\LhvConnect\LaravelLhvConnectServiceProvider::class is automatically registered.

In terminal run

$ php artisan vendor:publish

Open file config/lhv-connect.php and fill out the config. You can fill in info about several bank accounts and certifications.

Now you can create new LhvConnect object. The Config::get parameter lhv-connect.test means that the file lhv-connect.php and the array with the key 'test' is passed on.

$lhv = new LhvConnect(Config::get('lhv-connect.test'));

Test the connection. If there's no connection, Exception with 503 should be thrown.

$lhv->makeHeartbeatGetRequest();

Retrieve a message from LHV inbox

$message = $lhv->makeRetrieveMessageFromInboxRequest();

Delete the message from LHV inbox

$lhv->makeDeleteMessageInInboxRequest($message);

Retrieve all messages. This gets you all the messages but it also deletes all the messages from the inbox.

$messages = $lhv->getAllMessages();

Related Packages

sule/bank-statements

Laravel Bank Statements package

274 105
bap/connect

Connect BAP Platform for laravel 5.*

613 0
iamtartan/epayment

All Iranian payment gateways handler for laravel applications

127 6
nikapps/nikpay-laravel

A laravel 5 package for connecting to Iranian banks for payment transactions

29,702 0