2017 © Pedro Peláez
 

library laravel-epay

This is epay package

image

startupmasters/laravel-epay

This is epay package

  • Friday, November 25, 2016
  • by startupmasters
  • Repository
  • 2 Watchers
  • 1 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 32 % Grown

The README.md

Laravel-epay package

Instalation

Add to your composer.json file

"startupmasters/epay":"1.0.*"

Update composer file

composer update, (*1)

In config\app.php

-in 'providers' array, (*2)

StartupMasters\Epay\Epay\EpayServiceProvider::class,

..., (*3)

-in 'aliases' array, (*4)

   'Epay'  => StartupMasters\Epay\Facades\Epay::class

Publish config files

php artisan vendor:publish --tag=config

How to use

Add to config-epay.php, (*5)

<?php
return [
    'submit_url'    => 'URLToSend', 
    'secret'        => 'Here you must type your client secret key from epay site', // client secret
    'client_id'     => 'Here you must type your client id from epay site', // client id
    'expire_days'   => 1, // expire time for transations in days
    'success_url'   => 'SuccessURL', // where to return user after transaction complete
    'cancel_url'    => 'FailURL', // return user to this url if transaction is canceled
];

Note:, (*6)

 test url is : https://devep2.datamax.bg/ep2/epay2_demo/
 production url is : https://www.epay.bg/

add to your payment controller, (*7)

$epay = Epay::generateInputFields([
            'invoice' => 'InvoiceID', // invoice ID
            'amount' => 'amount', // amount(not as a string)
            'descr' => 'Some about order' // info about order
        ],'pageType');
return view('payment')->with('epay', $epay);

Note: 'pageType'is what type of gate you want to load.If you want to make payment via Epay site use : 'paylogin' in other case you can use BORICA gateway to make payment ,so then use: 'credit_paydirect' Your blade view should look something like this:, (*8)



{{ csrf_field() }} {!! $epay !!}

REFERENCE: Documentation of Epay site -> https://www.epay.bg/v3main/img/front/tech_wire.pdf (sorry for the language), (*9)

The Versions

25/11 2016

dev-master

9999999-dev

This is epay package

  Sources   Download

MIT

The Requires

 

by Avatar startupmasters

laravel payments epay

25/11 2016

v1.0.1

1.0.1.0

This is epay package

  Sources   Download

MIT

The Requires

 

by Avatar startupmasters

laravel payments epay

24/11 2016

v1.0.0

1.0.0.0

This is epay package

  Sources   Download

MIT

The Requires

 

by Avatar startupmasters

laravel payments epay