定制 frankyso/laravel-ipaymu 二次开发

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

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

frankyso/laravel-ipaymu

最新稳定版本:v1.0

Composer 安装命令:

composer require frankyso/laravel-ipaymu

包简介

iPaymu-PHP wrapper for Laravel

README 文档

README

This is iPaymu-php for Laravel Framework

Build Status Latest Stable Version Total Downloads Latest Unstable Version License StyleCI

Installation

The best way to use this package is using composer

composer require frankyso/laravel-ipaymu

Usage

Initialization

<?php
use iPaymu;

$iPaymu = new iPaymu('your-api-key', ['ureturn','unotify','ucancel']);

if you dont use package discovery add this Facade to into your app config aliases

'iPaymu'=>\frankyso\iPaymu\Laravel\iPaymuFacade::class

and don't forget to publishing vendor

php artisan vendor:publish

How to Use

With Facade

use iPaymu;

iPaymu::cart()->add("id","product-name", 'product-quantity','product-price');
iPaymu::cart()->checkout("transaction-comment");

Without Facade

function transaction(iPaymu $iPaymu){
    $iPaymu->cart()->add("id","product-name", 'product-quantity','product-price');
    $iPaymu->cart()->checkout("transaction-comment");
}
Note

Other function same with origin Library

Authors

  • Franky So - Initial work - Konnco

See also the list of contributors who participated in this project.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-25