定制 roksta/ipay-ke 二次开发

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

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

roksta/ipay-ke

Composer 安装命令:

composer require roksta/ipay-ke

包简介

iPay implementation in kenya.

README 文档

README

This package is designed for use with Laravel.

Installation

composer require roksta/ipay-ke

Configuration

Publish config file to set iPay options.

php artisan vendor:publish --provider="Roksta\IPay\Providers\IPayServiceProvider"

Use

Set your environment variables in your .env file

IPAY_ENV=live or sandbox
IPAY_SECRET_KEY="your_ipay_secret_key"
IPAY_VENDOR_ID="your_ipay_vendor_id"
IPAY_MOBILE_CALLBACK_URL="https://yoursite.com/callback-url"
IPAY_CARD_CALLBACK_URL="https://yoursite.com/callback-url"

Initialize iPay

$ipay = IPay::orderId(1234)
          ->amount(1)
          ->customer($phone_number, $email);

$response = $ipay->initiate();
  • Note, phone numer and email cannot be null.

Mobile STK Push

$stk_response = Ipay::stk('network')->push($phone_number, $response->data->sid);
  • Note: network options and sid are contained within the $response object

Generate Pay with iPay button

$ipay->generateForm('button_text', 'button_class')
  • button_text refers to the text diplayed in the button, eg, Pay With IPay
  • button_class refers to which classes to be applied to the button, eg 'btn btn-primary'

Licence

The package is provided under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固