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

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

FIB Laravel Payment SDK

The FIB Laravel Payment SDK provides a seamless integration with the FIB payment system for Laravel applications, enabling secure and efficient payment transactions and refund handling.

Table of Contents

Features

Installation

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

Alternative Installation (Without Composer)

If you prefer not to use Composer, follow these steps:

Registering the Service Provider and Running Migrations

Step 1: Register the Service Provider

Before using the SDK, ensure that you register the FIBPaymentServiceProvider. This service provider binds the SDK's services into the Laravel service container and loads necessary resources like routes, migrations, and configurations.

For Laravel 10 and Lower:

In your config/app.php file, add the following to the providers array:

For Laravel 11 and Higher:

In Laravel 11, service providers are registered in the bootstrap/providers.php file. To register the FIBPaymentServiceProvider, add it to the returned array in the bootstrap/providers.php file like this:

Step 2: Publish the Configuration

To customize the SDK's configuration, you need to publish the configuration file. Run the following Artisan command:

This will publish the SDK configuration file to your application's config/fib.php file, where you can modify the SDK's behavior according to your needs.

Step 3: Running Migrations

The SDK comes with migration files that create the necessary database tables. To run these migrations, use the following Artisan command:

This command will execute the migration files located in the SDK's database/migrations directory and create the required database tables.

Add the following environment variables to your .env file:

Usage of the SDK

Ensure Dependencies are Installed:

Install required dependencies using Composer:

Set Up Environment Variables:

Create a .env file in the root directory of your Laravel project and set the necessary environment variables.

Creating a Payment

Here's an example of how to create a payment:

Checking the Payment Status

To check the status of a payment:

Refunding a Payment

To process a refund:

Cancelling a Payment

To cancel a payment:

Handling Payment Callbacks

To handle payment callbacks, create a route and controller method:

FIB Payment Documentation

For detailed documentation on FIB Online Payment, refer to the full documentation.

Testing

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 available versions, see the tags on this repository.

FAQ

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

A: 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 production, but ensure it is configured correctly and you have the necessary credentials.


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

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
guzzlehttp/guzzle Version ^7.0
illuminate/contracts Version ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/http Version ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0
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-laravel-payment-sdk contains the following files

Loading the files please wait ....