# Installation

Laravel paystack can be installed via Composer:

Requires PHP 7.4+ (opens new window) and Laravel 8.0+ (opens new window)

composer require iamolayemi/laravel-paystack
1

# Configuration

You may publish the package configuration file by running the command

php artisan vendor:publish --provider="Iamolayemi\Paystack\PaystackServiceProvider"
1

A configuration file named paystack.php will be placed in app/config folder

# Environment Settings

Open your .env file and add your public key, secret key, callback url and webhook:

PAYSTACK_PUBLIC_KEY=pk_xxxxxxxxxxxxx
PAYSTACK_SECRET_KEY=sk_xxxxxxxxxxxxx
1
2

Congratulations 🎉🎉🎉 , you are ready to start developing your application with this package.