startupmasters/laravel-epay 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

startupmasters/laravel-epay

Composer 安装命令:

composer require startupmasters/laravel-epay

包简介

This is epay package

README 文档

README

Laravel-epay package

##Instalation

Add to your composer.json file

"startupmasters/epay":"1.0.*"

#Update composer file

composer update

#In config\app.php -in 'providers' array

StartupMasters\Epay\Epay\EpayServiceProvider::class,

...

-in 'aliases' array

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

#Publish config files

php artisan vendor:publish --tag=config

#How to use Add to config-epay.php

<?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:

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

add to your payment controller

$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:

<form method="post" action="{{ config('config-epay.submit_url') }}">

    {{ csrf_field() }}
    {!! $epay !!}
    <button type="submit">Submit</button>

</form>

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

统计信息

  • 总下载量: 159
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固