Skip to content

Flutterwave v3 Payment Solution integration with Codeigniter 4

Notifications You must be signed in to change notification settings

jlwegaba/flutterwave_Codeigniter4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

INTEGRATING Flutterwave v3 with CODEIGNITER 4

From Flutterwave's v3 PHP SDK on https://github.com/Flutterwave/PHP, you can start by installing library using composer.

$ composer require flutterwavedev/flutterwave-v3

Then go ahead to configure extra fields (PUBLIC_KEY, SECRET_KEY, ENV) in your .env file as below.

PUBLIC_KEY="YOURPUBLICKEY" // can be gotten from the dashboard
SECRET_KEY="YOURSECRETKEY" // can be gotten from the dashboard
ENCRYPTION_KEY="Encryption key"
ENV="development/production"

Then go ahead to place the files below in their respective directories as per CodeIgniter4 file structure

  • .env
  • Payments.php
  • TransactionsModel.php
  • Views (index.php and success_page.php)

NOTE:

  • Ensure you have setup your flutterwave account from www.flutterwave.com
  • You can modify the function(s) as much as you can or even make it better for usage for others.

About

Flutterwave v3 Payment Solution integration with Codeigniter 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published