k1low/gmo-pg-php

GMO Payment Gateway SDK for PHP

Maintainers

Details

github.com/k1LoW/gmo-pg-php

Source

Fund package maintenance!
k1LoW

Installs: 69 871

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 4

Forks: 16

v1.4.0 2020-07-29 15:05 UTC

This package is auto-updated.

Last update: 2024-10-29 05:16:17 UTC


README

This is a PHP library for the GMO Payment Gateway, supporting the PG Multi Payment API, exec transactions, register users, and so on.

Installation

composer require k1low/gmo-pg-php

Usage

$host = '';
$site_id = '';
$site_pass = '';
$site = new \GMO\Payment\SiteApi($host, $site_id, $site_pass);
$member_id = '';
$card_no = '';
$expire = '';
$card = '';

try {
  $data = $site->updateCard($member_id, $card_no, $expire, $card);
  print_r($data);
}
catch (exception $e) {
  print $e->getMessage();
}

More examples are available on examples directory.

Shop API

In this library, we have defined as "Shop API" an API that requires shop ID and shop password to the API call.

Site API

An API that requires site ID and site password to the API call.

ShopAndSite API

An API that requires shop ID, shop password, site ID and site password to the API call.