定制 killallskywalker/eghl-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

killallskywalker/eghl-laravel

Composer 安装命令:

composer require killallskywalker/eghl-laravel

包简介

Package to integrate EGHL payment gateway with laravel .

README 文档

README

EGHL is a package to that contain facades to allow integration with EGHL payment gateway . As for now this package only have two method which is to generate query url that use to make a request to eghl and validate payment response .

Installation

composer require killallskywalker/eghl-laravel

Usage

Set the env first . Which is

EGHL_PASSWORD = your account password
EGHL_SERVICE_ID = your service id
EGHL_SERVICE_URL = your service url 
MERCHANT_RETURN_URL = return url
MERCHANT_APPROVAL_URL = approval url 
MERCHANT_UNAPPROVAL_URL = unapproval url
MERCHANT_CALLBACK_URL = callback url
use Eghl;

// For the data , array of parameter require . Can refer to their documentation what is required . 
// To process payment by generating url that will be request to Eghl 
$url = Eghl::processPaymentRequest($data);

// To validate return callback , return true if valid , and otherwise if not valid
$status = Eghl::processPaymentRequest($data);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-04-06