Download the PHP package first-iraqi-bank/fib-php-payment-sdk without Composer

On this page you can find all versions of the php package first-iraqi-bank/fib-php-payment-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-payment-sdk

FIB Payment SDK

The FIB Payment SDK provides seamless integration with the FIB payment system, empowering developers to streamline payment transactions and facilitate secure refunds within their applications.

FIB Payment SDK

Table of Contents

Features

Installation

To integrate the SDK into your project, install it via Composer:

Alternative Installation (Without Composer)

If your project prefers not to use Composer for dependency management, you can manually include the FIB Payment SDK by following these steps:

Notes

Configuration

To configure the SDK, you need to set the following environment variables:

Make sure to set these environment variables appropriately in your application's environment configuration.

Usage of the SDK

Below is a basic example of how to use the SDK:

Ensure Dependencies are Installed:

Make sure you have installed all required dependencies using Composer:

Set Up Environment Variables:

Create a .env file in the root directory of your project and configure the necessary environment variables. Refer to the .env.example file for the required variables.

Create a Payment Example Usage

By following these steps, you ensure that the payment details are securely stored and easily accessible for further processing.

Checking the Payment Status

To check the status of a payment, use the checkPaymentStatus method. This method requires the paymentId which was returned when the payment was created.

Refunding a Payment

To refund a payment, use the refund method. This method also requires the paymentId.

Cancelling a Payment

To cancel a payment, use the cancel method. This method requires the paymentId.

Handling Payment Callbacks

To handle payment callbacks, ensure your application has a POST API or URL that FIB can call to notify your application about payment status updates.

Callback URL Requirements Your callback URL should be able to handle POST requests with a request body containing two properties:

id: This represents the payment ID associated with the callback. Status: This indicates the current status of the payment. Refer to the "Check Payment Status" section of this documentation for more details. The status returned should mirror the data structure returned by the check status endpoint.

Notes

FIB Payment Documentation

For comprehensive details on FIB Online Payment, please refer to the full documentation.

Testing

To ensure the SDK functions correctly, run tests using PHPUnit:

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

License

This project is licensed under the MIT License. See the LICENSE.md file for details.

Support

For support, please contact [email protected] or visit our website.

Acknowledgments

Thanks to the FIB Payment development team for their contributions. This SDK uses the cURL library for API requests.

Versioning

We use semantic versioning (SemVer) principles for subsequent releases (v0.2.0, v0.3.0, etc.). For the versions available, see the tags on this repository.

FAQ

Q: How do I get an API key for the FIB Payment system?

A: Please contact our support team at [email protected] to request an API key.

Q: Can I use this SDK in a production environment?

A: Yes, the SDK is designed for use in production environments, but please ensure you have configured it correctly and have got the necessary credentials.


All versions of fib-php-payment-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-json Version *
guzzlehttp/guzzle Version ^7.0
monolog/monolog Version ^2.5.0
vlucas/phpdotenv Version 5.6.x-dev
psr/log Version ^1.1
symfony/deprecation-contracts Version ^2.0
doctrine/instantiator Version ^1.4
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 first-iraqi-bank/fib-php-payment-sdk contains the following files

Loading the files please wait ....