aatishgore / pexcardsdk
PexCard Api SDK package
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/aatishgore/pexcardsdk
Requires
- laravelcollective/html: ^5.5
This package is auto-updated.
Last update: 2025-09-20 04:38:10 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>);