2017 © Pedro Peláez
 

library banklink

PHP banklink library to easily integrate Baltic banklinks.

image

renekorss/banklink

PHP banklink library to easily integrate Baltic banklinks.

  • Tuesday, June 26, 2018
  • by renekorss
  • Repository
  • 6 Watchers
  • 16 Stars
  • 194 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 3 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

Actions Status Coverage Status Codacy Badge Latest Stable Version Total Downloads License, (*1)

PHP Payment library

PHP payment library to easily integrate Baltic banklinks, E-commerce gateaway (Estcard, Nets Estonia), Liizi Payment Link and Pocopay., (*2)

View API documentation at https://renekorss.github.io/Banklink/, (*3)

Install

composer require renekorss/banklink

Supported providers

Country / Provider Payment Authentication
Estonia
Danskebank :white_check_mark: :white_check_mark:
Coop Pank :white_check_mark: :white_check_mark:
LHV :white_check_mark: :white_check_mark:
SEB :white_check_mark: :white_check_mark:
Swedbank :white_check_mark: :white_check_mark:
Luminor :white_check_mark: :white_check_mark:
Nordea :white_check_mark: :white_check_mark:
Pocopay :white_check_mark: does not apply
Estcard :white_check_mark: does not apply
Liisi Payment Link :white_check_mark: does not apply
Lithuania
SEB :white_check_mark: does not apply
Swedbank :white_check_mark: does not apply
Luminor :white_check_mark: does not apply
Šiaulių :white_check_mark: does not apply
Estcard :white_check_mark: does not apply

How to use?

For more information, please visit Wiki. Basic example is below., (*4)

SECURITY WARNING, (*5)

Never keep your private and public keys in publicly accessible folder. Instead place keys under root folder (usually public_html or www)., (*6)

If you store keys as strings in database, then they should be accessible only over HTTPS protocol., (*7)

Payment

getPaymentRequest(123453, 150, 'Test makse', 'EST');

    // You can also add custom request data and/or override request data
    // Optional
    $request = $seb->getPaymentRequest(123453, 150, 'Test makse', 'EST', 'EUR', [
        'VK_REF' => 'my_custom_reference_number', // Override reference number
        'INAPP' => true // Pocopay specific example
    ]);
?>



getRequestInputs(); ?>

Authentication

getAuthRequest();
?>



getRequestInputs(); ?>

Response from provider

handleResponse($_POST);

    // Successful
    if ($response->wasSuccessful()) {
        // Get whole array of response
        $responseData    = $response->getResponseData();

        // User prefered language
        $language        = $response->getLanguage();

        // Only for payment data
        $orderId         = $response->getOrderId();
        $sum             = $response->getSum();
        $currency        = $response->getCurrency();
        $sender          = $response->getSender();
        $transactionId   = $response->getTransactionId();
        $transactionDate = $response->getTransactionDate();
        $message         = $response->getMessage();
        $automatic       = $response->isAutomatic(); // true if response was sent automatically by bank

        // Only for auth data
        $userId          = $response->getUserId(); // Person ID
        $userName        = $response->getUserName(); // Person name
        $country         = $response->getUserCountry(); // Person country
        $authDate        = $response->getAuthDate(); // Authentication response datetime

        // Method used for authentication
        // Possible values: ID Card, Mobile ID, One-off code card, PIN-calculator, Code card or unknown
        $authMethod      = $response->getAuthMethod();

    // Failed
    } else {
        // Payment data
        $orderId         = $response->getOrderId(); // Order id to cancel order etc.
    }
?>

Tasks

  • composer build - build by running tests and all code checks
  • composer test - run tests
  • composer format - format code against standards
  • composer docs - build API documentation
  • composer phpmd - run PHP Mess Detector
  • composer phpcs - run PHP CodeSniffer

License

Licensed under MIT, (*8)

The Versions

26/06 2018

dev-3.0-dev

dev-3.0-dev

PHP banklink library to easily integrate Baltic banklinks.

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • lib-openssl *
  • php >=7.1

 

The Development Requires

payments nets seb nordea swedbank banklink pangalink lhv baltic banklinks danskebank liisi cooppank luminor pocopay

25/07 2017

dev-master

9999999-dev

PHP banklink library to easily integrate Baltic banklinks.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mbstring *
  • lib-openssl *

 

The Development Requires

banklink pangalink baltic banklinks

15/03 2017

v2.0.2

2.0.2.0

PHP banklink library to easily integrate Baltic banklinks.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mbstring *
  • lib-openssl *

 

The Development Requires

banklink pangalink baltic banklinks

27/07 2016

v2.0.1

2.0.1.0

PHP banklink library to easily integrate Baltic banklinks.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mbstring *
  • lib-openssl *

 

The Development Requires

banklink pangalink baltic banklinks

21/05 2016

v2.0.0

2.0.0.0

PHP banklink library to easily integrate Baltic banklinks.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mbstring *
  • lib-openssl *

 

The Development Requires

banklink pangalink baltic banklinks

12/10 2015

v1.0.0

1.0.0.0

PHP banklink library to easily integrate Baltic banklinks.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mbstring *
  • lib-openssl *

 

The Development Requires

banklink pangalink baltic banklinks