承接 nekoding/gmo-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

nekoding/gmo-php

最新稳定版本:v1.1.0

Composer 安装命令:

composer require nekoding/gmo-php

包简介

GMO PG for PHP

README 文档

README

CodeFactor

Gmo payment gateway php library

Library for easy access API GMOPG

Laravel Version

Laravel version for this package is available https://github.com/nekoding/gmo-payment-gateway

Installation

composer require nekoding/gmo-php

Usage

Example

Entry transaction using credit card

$shop = new Shop('https://pt01.mul-pay.jp/payment', 'your_shop_id', 'your_shop_pass');
$result = $shop->entryTran($param1, $param2, $param3, $param4);

print_r($result)

Immediate Transaction using credit card

$shop = new ImmediateShop('https://pt01.mul-pay.jp/payment', 'your_shop_id', 'your_shop_pass');

//You need to adding required parameter
$data = array(
  'token' => 'TOKEN_PAYMENT',
  'method'  => 1
)

// This function 'get()' will return response in Array
// if you want response in json you can use toJson()
// or if you want response in raw string you can use rawString()

$response = $shop->creditCard('ORDER-TEST', 'AUTH', 100, $data)->get();

print_r($response);

and many more.

Original Source

This repo just modification from :

k1LoW/gmo-pg-php

so the usage same as original source.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2020-07-20