mboateng/sppay-laravel

An application that helps you easily integrate with SSPAY Payment APIs

1.01 2025-03-27 22:46 UTC

This package is auto-updated.

Last update: 2025-07-28 17:17:38 UTC


README

Installation

Require this package in your composer.json and update composer

  1. composer require sppay/sspay-laravel
    Run the following command to install the package in your project:

    composer require sppay/sspay-laravel
  2. Publish Config files
    Copy packages config file to your own config directory to modify the values where necessary

    php artisan vendor:publish --tag=sppay-config
  3. Publish View files
    Run the command below to copy the views in your vendor/view dir:

    php artisan vendor:publish --tag=sppay-views
  4. Publish Migrations
    Copy the migration files into your migrations dir:

    php artisan vendor:publish --tag=sppay-migrations 
  5. Run Migrations
    Migrate the package's migrations files you just copied

    php artisan migrate 

Update the .env file with the appropriate values for your setup.

AUTH_CLIENT_GRANT_TYPE=
AUTH_CLIENT_ID=
AUTH_CLIENT_SECRET=
AUTH_CLIENT_USERNAME=
AUTH_CLIENT_PASSWORD=
SPPAY_BASE_URL=