This is a PHP library for the GMO Payment Gateway, supporting the PG Multi Payment API, exec transactions, register users, and so on.
composer require itcomllc/gmo-pg-php
$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.
In this library, we have defined as "Shop API" an API that requires shop ID and shop password to the API call.
An API that requires site ID and site password to the API call.
An API that requires shop ID, shop password, site ID and site password to the API call.