Download the PHP package prevailexcel/laravel-fincra without Composer

On this page you can find all versions of the php package prevailexcel/laravel-fincra. 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 laravel-fincra

Laravel Fincra

Latest Version on Packagist Total Downloads

A Laravel Package for working with Fincra Payments seamlessly.

Fincra offers a contemporary financial infrastructure designed for businesses and developers, enabling them to facilitate local and international payouts, gather payments from customers, and create virtual accounts.

This package allows you to:

Requirements

PHP 7.4+ or PHP 8.0+, and Composer are required.

Installation

To get the latest version of Laravel Fincra, simply require it:

Or add the following line to the require block of your composer.json file:

You'll then need to run composer install or composer update to download it and have the autoloader updated.

Service Provider & Facade (Laravel < 5.5)

Once Laravel Fincra is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key:

Also, register the Facade:

If you use Laravel >= 5.5 you can skip this step and go to configuration

Configuration

You can publish the configuration file using this command:

A configuration-file named fincra.php with sensible defaults will be placed in your config directory:

Environment Variables

Open your .env file and add your Fincra API keys:

Note: Remember to change FINCRA_ENV to live and update the keys when you're in production.

Usage

Payment Flow Overview

  1. Collect payment information from your customer
  2. Initialize payment using either:
    • Inline Checkout (Pop Widget) - User pays without leaving your site
    • Checkout Redirect - Redirect user to Fincra hosted page
  3. Verify the transaction
  4. Handle webhook notifications

Routes Setup

Add these routes to handle payments:

Checkout Methods

1. Inline Checkout (Pop Widget)

The inline checkout displays a payment modal on your page, allowing customers to pay without leaving your site.

Controller Example

Blade Form

2. Checkout Redirect

Redirect users to Fincra's hosted checkout page:

Virtual Accounts

Create Virtual Account

Get Virtual Accounts

Payouts

Initiate Payout

Get Payouts

Beneficiaries

Identity Verification

Verify BVN

Verify Bank Account

Verify IBAN

BIN Resolution

Balance & Transactions

Conversions

Webhooks

Setup Webhook Handler

CSRF Exception

Add the webhook route to the CSRF exception array in app/Http/Middleware/VerifyCsrfToken.php:

Webhook Events

Fincra sends webhooks for these events:

Available Methods

Payments/Collections

Virtual Accounts

Payouts

Beneficiaries

Identity Verification

Balance & Transactions

Conversions

Webhooks

Utilities

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

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.

Support

For support, please reach out via:

Also check out my page on medium to catch articles and tutorials on Laravel follow me on medium!

Thanks! Chimeremeze Prevail Ejimadu.


Show some ❤️ by starring this repository!


All versions of laravel-fincra with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.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 prevailexcel/laravel-fincra contains the following files

Loading the files please wait ...