iqomp / growinc-pga
GrowInc PGA API handler
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/iqomp/growinc-pga
Requires
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-04 17:44:07 UTC
README
The library for working with GrowInc PGA.
Installation
composer require iqomp/growinc-pga
Usage
This module add new class that can be used to work with GrowInc PGA API.
use Iqomp\GrowIncPGA\PGA; $pga = new PGA($merc_code, $merc_secret); // get all payment methods $payment_methods = $pga->getPaymentMethods(); // create new bill $body = [ 'invoice_no' => ::string, 'description' => ::string, 'amount' => ::int, 'customer_name' => ::string, 'customer_email' => ::string, 'customer_phone' => ::string, 'expire_in' => ::int, 'payment_method_code' => ::string ]; $bill = $pga->createBill($body); // check bill status $body = [ 'reference_no' => ::string ]; $status = $pga->checkBill($body); // get all exists transactions $body = [ 'start_date' => ::string, 'end_date' => ::string, 'show_per_page' => ::int ]; $trans = $pga->getTransactions($body);