2017 © Pedro Peláez
 

library borica

Borica payment package

image

escapeboy/borica

Borica payment package

  • Sunday, March 4, 2018
  • by escapeboy
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 25 % Grown

The README.md

Laravel Borica Package

All kudos goes to original author https://github.com/mirovit/borica-api Please star it! I only ported it for easy integration with Laravel., (*1)

Installation

composer require escapeboy/borica

This package works with auto-discovery. For Laravel <5.5 you should register it manually:, (*2)

//config/app.php
Borica\ServiceProvider::class,

Publish package config, (*3)

php artisan vendor:publish --provider="Borica\BoricaServiceProvider"

Usage

$borica = new \Borica\Factory();

Registering of a transaction

$borica->request()
        ->amount('1') // 1 EUR
        ->orderID(1) // Unique identifier in your system
        ->description('testing the process') // Short description of the purchase (up to 125 chars)
        ->currency('EUR') // The currency of the payment
        ->register(); // Type of the request

Check status of a transaction

$factory->request()
        ->amount('1') // 1 EUR
        ->orderID(1) // Unique identifier in your system
        ->description('testing the process') // Short description of the purchase (up to 125 chars)
        ->currency('EUR') // The currency of the payment
        ->status(); // Type of the request

Reverse a transaction

$factory->request()
        ->amount('1') // 1 EUR - partial reversal (amount less than the original), full reversal the original amount
        ->orderID(1) // Unique identifier in your system
        ->reverse(); // Type of the request

Parse response

$borica = new \Borica\Factory();
$borica = $borica->response($request->eBorica);
//Methods
$borica->transactionCode();
$borica->transactionTime();
$borica->amount();
$borica->terminalID();
$borica->orderID();
$borica->notSuccessful();
$borica->isSuccessful();
$borica->responseCode();

The Versions

04/03 2018

dev-master

9999999-dev

Borica payment package

  Sources   Download

MIT

The Requires

 

by Miroslav Vitanov

laravel payment borica

04/03 2018

dev-dev

dev-dev

Borica payment package

  Sources   Download

MIT

The Requires

 

by Miroslav Vitanov

laravel payment borica

04/03 2018

1.0.0

1.0.0.0

Borica payment package

  Sources   Download

MIT

The Requires

 

by Miroslav Vitanov

laravel payment borica

25/02 2018

0.1.0

0.1.0.0

Borica payment package

  Sources   Download

MIT

The Requires

 

by Miroslav Vitanov

laravel payment borica