azioarv / portalpulsa
There is no license information available for the latest version (dev-master) of this package.
Portal Pulsa API with Laravel 5
dev-master
2018-02-14 09:08 UTC
This package is auto-updated.
Last update: 2025-01-22 20:34:52 UTC
README
Portal Pulsa API
Package for Laravel 5 Official Documentation Installation
composer require azioarv/portalpulsa
Add the following code to config/app.php Provider
AzioArv\PortalPulsa\PortalPulsaServiceProvider::class
Aliases
'Pulsa' => AzioArv\PortalPulsa\PortalPulsaFacade::class
Run This Command
php artisan vendor publish
Configuration .env
PULSA_ID=<your_id>
PULSA_KEY=<your_key>
PULSA_SECRET=<your_secret>
Usage Check Saldo
Pulsa::saldo();
Check Price Product
Pulsa::cekHarga($productCode);
Check Status
Pulsa::status($transcationID);
Process Transcation
Pulsa::prosesPulsa($productCode,$phoneNumber,$transactionID);
Process PLN Transcation
Pulsa::prosesPLN($productCode,$phoneNumber,$plnNumber,$transactionID);