Download the PHP package fapshi/payments without Composer
On this page you can find all versions of the php package fapshi/payments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package payments
Fapshi Payments PHP Client
PHP SDK for the Fapshi Payments API. Supports sandbox and live environments.
Installation
Quick start
Environments
- Auto-detected from
apikeywhen environment is not passed:FAK_TEST_...→ sandbox (https://sandbox.fapshi.com)FAK_...→ live (https://live.fapshi.com)
- You can force with helpers:
Client::sandbox(...)orClient::live(...), or pass the env name as the 3rd constructor arg. Passing abaseUrlOverrideto the constructor also disables detection.
Auth headers are automatically set from constructor: apiuser, apikey.
API coverage
POST /initiate-payPOST /direct-payGET /payment-status/{transId}POST /expire-payGET /transaction/{userId}GET /searchGET /balancePOST /payout
Error handling
All non-2xx responses throw Fapshi\Exceptions\FapshiException with:
getMessage()→ API message or generic status textgetStatusCode()→ HTTP status codegetResponseBody()→ decoded JSON body (array) when available
Development
- PHP >= 8.0
- GuzzleHTTP ^7.9 or ^8
License
MIT
All versions of payments with dependencies
PHP Build Version
Package Version
The package fapshi/payments contains the following files
Loading the files please wait ...