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

This package is auto-updated.

Last update: 2024-04-20 01:48:39 UTC


README

This is a PEX CARD PHP SDK to trigger the api

View tutorial

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>);