PHP code example of modern-pug / iamport-rest-client
1. Go to this page and download the library: Download modern-pug/iamport-rest-client 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/ */
modern-pug / iamport-rest-client example snippets
use ModernPUG\Iamport\IamportApi;
use \ModernPUG\Iamport\Configuration;
$client = new IamportApi(new Configuration([
'imp_key' => 'your_key',
'imp_secret' => 'your_secret',
]));
$client->getPaymentByImpId('imp_xxxxxxxxxx'); // return [ ... ] array