Skip to content

2 Installation

Jedd Saliba edited this page Mar 6, 2024 · 5 revisions

Update or add the following to your .env file:

CHARGIFY_BASE_API_URL=
CHARGIFY_API_KEY=

(Note: In order to grab and generate the correct keys, please follow the steps here)

Install the package using composer:

composer require jscustom/laravel-chargify

Export the configuration file:

php artisan vendor:publish --provider="JSCustom\Chargify\Providers\ChargifyServiceProvider" --tag="config"

Export the migration files:

php artisan vendor:publish --provider="JSCustom\Chargify\Providers\ChargifyServiceProvider" --tag="migrations"

Run a quick migration:

php artisan migrate --path=/database/migrations/chargify

Clone this wiki locally