Download the PHP package badinansoft/fib-php-sdk without Composer

On this page you can find all versions of the php package badinansoft/fib-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fib-php-sdk

FIB (First Iraqi Bank)'s PHP payment SDK

Latest Version on Packagist Total Downloads GitHub Actions

The PHP SDK for First Iraqi Bank's online payment is a library that allows you to integrate First Iraqi Bank's online payment system into your PHP application. The SDK provides a simple and easy-to-use API that allows you to create, status check, and cancel payments.

Features

You can install the package via composer:

Usage

Parameter Description
Client_id Client id provided by FIB
client_secret Client Secret provided by FIB
Parameter Description
amount the amount of the payment
currency the currency of the payment; currently only IQD is supported
description (Optional) Description of the payment to help your customer to identify it in the FIB app, with the maximum length of 50 characters.
statusCallbackUrl should be able to handle POST requests with request body that contains two properties: - id: this will be the payment id
- status: this will be the status of the payment, for more information, go to Check Status endpoint section of this
Expected Response
Property Description
paymentId A unique identifier of the payment, used later to check the status.
qrCode A base64-encoded data URL of the QR code image that the user can scan with the FIB mobile app.
readableCode A payment code that the user can enter manually in case he cannot scan the QR code.
personalAppLink A link that the user can tap on his mobile phone to go to the corresponding payment screen in the FIB Personal app.
businessAppLink A link that the user can tap on his mobile phone to go to the corresponding payment screen in the FIB Business app
corporateAppLink A link that the user can tap on his mobile phone to go to the corresponding payment screen in the FIB Corporate app
validUntil An ISO-8601-formatted date-time string, representing a moment in time when the payment expires
Expected Response
Property Description
paymentId a unique identifier of the payment.
status Expected values are PAID UNPAID DECLINED
validUntil an ISO-8601-formatted date-time string, representing a moment in time when the payment expires
paidAt an ISO-8601-formatted date-time string, representing a moment in time when the payment is done.
amount a JSON object, containing two key-value pairs; the amount and currency of the payment.
decliningReason Expected Values are:
-SERVER_FAILURE: Payment failure due to some internal error.
-PAYMENT_EXPIRATION: Payment has expired.
-PAYMENT_CANCELLATION: Payment canceled by the user.

Testing

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of fib-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
ext-json Version *
guzzlehttp/guzzle Version ^7.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package badinansoft/fib-php-sdk contains the following files

Loading the files please wait ....