This library provides QiosPay integration with the CodeIgniter 4 framework and standalone PHP projects. It helps manage data and APIs easily through Service Facade.
- Install via Composer
composer require reactmore/qiospay-sdkQiospay.merchantCode = ''
Qiospay.apiKey = ''
Qiospay.qrisString = ''
# TODO For H2H:
Qiospay.memberId = ''
Qiospay.memberPin = ''
Qiospay.memberPassword = ''$qiospay = service('qiospay');
$productsService = $qiospay->products();$response = $productsService->getProduct([], 1);
$data = $response->getData();Example response:
array(
'kode' => 'BYRTSELQM',
'produk' => 'Telkomsel Omni',
'keterangan' => 'Bayar Telkomsel Combo Sakti',
'harga' => '2050',
'status' => '1',
...
)
$filters = [
'produk' => 'Telkomsel Omni',
];
$response = $productsService->getProduct($filters, 1);
$data = $response->getData();Example response:
| kode | produk | keterangan | harga | status |
|---|---|---|---|---|
| BYRTSELQM | Telkomsel Omni | Bayar Telkomsel Combo Sakti | 2050 | 1 |
| CEKTSELQM | Telkomsel Omni | Cek Harga Telkomsel Combo Sakti | 0 | 1 |
| LISTTSELQM | Telkomsel Omni | Cek List Telkomsel Combo Sakti | 0 | 1 |
$dataFilter = function(array $products) {
return array_filter($products, fn($item) => $item['harga'] > 0);
};
$filters = [
'produk' => 'Telkomsel Omni',
];
$response = $productsService->getProduct($filters, 1, $dataFilter);
$data = $response->getData();Filtered response:
| kode | produk | keterangan | harga | status |
|---|---|---|---|---|
| BYRTSELQM | Telkomsel Omni | Bayar Telkomsel Combo Sakti | 2050 | 1 |
$categoriesResponse = $productsService->getCategories();
$categories = $categoriesResponse->getData();$response = $productsService->getProduct(); // Get product with optional page
$response = $productsService->getAll(); // Get all products
$response = $productsService->getCategories();// Get all categories$qrisService = $qiospay->qris();
$response = $qrisService->getMutation([], 1);
$data = $response->getData();$filters = [
'amount' => 10000,
];
$response = $qrisService->getMutation($filters, 1);
$data = $response->getData();$response = $qrisService->generateDynamicQris([
'amount' => 15000,
'note' => 'Order #12345'
]);
$qrisData = $response->getData();$data = $response->getData();
$fullArray = $response->toArray();
$asObject = $response->toObject();
$json = $response->toJson();$qios = new QiosPayFacade([
'merchantCode' => '',
'memberId' => '',
'memberPin' => '',
'memberPassword' => '',
'apiKey' => '',
'qrisString' => '',
]);
$response = $qios->products()->getProduct([
'produk' => 'Telkomsel Omni',
], 1);