aatishgore / pexcardsdk
There is no license information available for the latest version (dev-master) of this package.
PexCard Api SDK package
dev-master
2018-12-19 13:46 UTC
Requires
- laravelcollective/html: ^5.5
This package is auto-updated.
Last update: 2025-02-20 03:33:31 UTC
README
This is a PEX CARD PHP SDK to trigger the api
Usage
- Install package
composer require aatishgore/PexCardSDK
- Publish Vendor
php artisan vendor:publish
Define API KEYS and Username
- After Vendor Publish, define the api keys in config/pex.php
Modules complete
- Generating API key
use aatish\Pex\Services\PexService;
$objPex = new PexService();
$objPex->generate_user_token();
$objPex->getToken()
- Renew API key
$pex = new PexService();
$pex->renew_token(<token>);
- Add Fund to card
$pex = new PexService();
$pex->setToken(<token>);
$pex->FundCard(<cardID>,<amount>);
- Add Fund to card to zero
$pex = new PexService();
$pex->setToken(<token>);
$pex->FundCardZero(<cardID>);