PHP code example of nekoding / gmo-php

1. Go to this page and download the library: Download nekoding/gmo-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nekoding / gmo-php example snippets


$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)

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

//You need to adding ay
// 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);


composer