nekoding/gmo-php

GMO PG for PHP

v1.1.0 2020-08-12 06:13 UTC

This package is auto-updated.

Last update: 2024-11-05 12:33:51 UTC


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.