Please, do not share your card details with anyone. Note that FIB never ask you for such information.

Magento Documentation

Do you happen to use the Magento Commerce suite to engage your customers? Learn how you can use FIB to offer a simple payment solution when your customers check out from your portal.

Installation

You have two ways to go about installing the plugin:

Composer

Use the popular PHP dependency manager to download the required files:

Code Example

Copy Copied
composer require lawrencespring/module-paywithfib

Manually Download Them from Our GitHub Repo

  1. Go to lawrencespring/fib-pay-magento2-payment and download the latest version to
    app/code/Lawrencespring/PayWithFIB
  2. Go to lawrencespring/fib-pay-php-sdk and download the latest version to
    app/code/Lawrencespring/FIBPaySDK

Configuration

In the following section you will find steps to configure Magento.

Setup Magento

1. Enable module by running:

Code Example

Copy Copied
$ bin/magento module:enable Lawrencespring_PayWithFIB

2. Install DB schema:

Code Example

Copy Copied
$ bin/magento setup:upgrade

3. Generate classes:

Code Example

Copy Copied
$ bin/magento setup:di:compile

4. Generate static content

Code Example

Copy Copied
$ bin/magento setup:static-content:deploy

Steps to Configure Magento

Login to magento backend and openStores \ Configuration and Sales \ Payment Methods

FindPay with FIB section and configure it with your credentials. You need to fillAccount ID ,
Client ID ,Client Secret fields.

After finishing, remember toSave Config on the right top corner andrefresh cache after it. If credentials are valid and every step was done on the frontend you should be able to seePay with First Iraqi Bank/Pay with FIB payment method.

When a customer finishes the payment process on the application page, an order will automatically be submitted to the customer. And you will be able to see notice on order details page like this one.

You can also check the generated transaction onSales \ Pay with FIB \ Transactions .

Notice

CurrentlyPay with FIB isoffline payment type. In future releases it will be upgraded toonline type with full options related to this type.

First Iraqi Bank - FIB
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.