This is a demo Laravel application integrate with payOS API base on template laravel/react-starter-kit.
- PHP >= 8.2
- Composer
- payOS credentials for payment-requests or payouts
composer run setup
# fill the required environment variables in the .env file
composer run devThe application will be accessible at http://localhost:8000.
-
OrderController: Implement payment-requests API.
php artisan route:list --name=api.payment.orders
-
WebhookController: Handle payment webhooks.
php artisan route:list --name=api.payment.webhooks
-
TransferController: Implement payouts API.
php artisan route:list --name=api.payment.transfers