# Installation

This will guide you in installing the package

# Prerequisite

PHP (opens new window) 7.2+, Laravel (opens new window) and Composer (opens new window) are required.

To get the latest version of Flutterwave, simply use composer

composer require kingflamez/laravelrave
1

For Laravel => 5.5, skip this step and go to configuration

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

'providers' => [
    /*
     * Package Service Providers...
     */
    ...
    KingFlamez\Rave\RaveServiceProvider::class,
    ...
]
1
2
3
4
5
6
7
8

Also add this to the aliases

'aliases' => [
    ...
    'Rave' => KingFlamez\Rave\Facades\Rave::class,
    ...
]
1
2
3
4
5

# Configuration

Publish the configuration file using this command:

php artisan vendor:publish --provider="KingFlamez\Rave\RaveServiceProvider"
1

A configuration-file named flutterwave.php will be placed in your config directory

# Usage

Open your .env file and add your public key, secret key, environment variable and logo url like so:

Get your keys form here (opens new window)

FLW_PUBLIC_KEY=FLWPUBK-xxxxxxxxxxxxxxxxxxxxx-X
FLW_SECRET_KEY=FLWSECK-xxxxxxxxxxxxxxxxxxxxx-X
FLW_SECRET_HASH='My_lovelysite123'
1
2
3
  • FLW_PUBLIC_KEY - This is the api public key gotten from your dashboard (compulsory)

  • FLW_SECRET_KEY - This is the api secret key gotten from your dashboard (compulsory)

  • FLW_SECRET_HASH - This is the secret hash for your webhook