- Run
composer install
- Copy
.env.example
to.env
- Generate APP key
php artisan key:generate
- Enter correct DB credentials in
.env
- Run migrations
php artisan migrate
- Run seeder
php artisan db:seed
- Run web server
php artisan serve
- In another terminal run job worker
php artisan horizon
Example API requests are prepared in requests.http
file.
They can be run directly in PHPStorm or replicated in Postman.
User and API token were generated in seeder.
- Get signed URL of
payments.store
endpoint by callingSignature
GET request - Send
Store
POST request with given signature - Check DB for stored Payment