https://github.com/zerosdev/nobubank-php
https://github.com/zerosdev/nobubank-php
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zerosdev/nobubank-php
- Owner: zerosdev
- License: mit
- Created: 2022-06-22T10:06:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-10T01:20:25.000Z (over 2 years ago)
- Last Synced: 2025-08-27T20:30:08.247Z (7 months ago)
- Language: PHP
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nobubank-php
## About
This library give you an easy way to call Nobu Bank API in elegant code style. Example :
```php
NobuBank::qris()
->setTransactionNo('ABCDEFGHIJKLMN')
->setReferenceNo('1234567890')
->setAmount(1000)
->setValidTime(3600)
->setStoreName('Nama Merchant')
->setCityName('Ponorogo')
->createDynamic();
```
## Installation
1. Run command
composer require zerosdev/nobubank-php
### The following steps only needed if you are using Laravel
2. Then
php artisan vendor:publish --provider="ZerosDev\NobuBank\Laravel\ServiceProvider"
3. Edit **config/nobu_bank.php** and put your API credentials
## Usage
### Laravel
```php
setTransactionNo('ABCDEFGHIJKLMN')
->setReferenceNo('1234567890')
->setAmount(1000)
->setValidTime(3600)
->setStoreName('Nama Merchant')
->setCityName('Ponorogo')
->createDynamic();
dd($dynamicQris);
}
}
```
### Non-Laravel
```php
'',
'password' => '',
'merchant_id' => '',
'store_id' => '',
'pos_id' => '',
'secret_key' => '',
];
$nobu = new NobuClient($mode, $config);
$dynamicQris = $nobu->qris()
->setTransactionNo('ABCDEFGHIJKLMN')
->setReferenceNo('1234567890')
->setAmount(1000)
->setValidTime(3600)
->setStoreName('Nama Merchant')
->setCityName('Ponorogo')
->createDynamic();
print_r($dynamicQris);
```