A minimal checkout demo testing the paystack-php library.
-
Copy and configure environment:
cp .env.example .env # Edit .env with your Paystack test keys -
Start the server:
php -S localhost:8000 -t public
- Start ngrok:
ngrok http 8000 - Set webhook URL in Paystack Dashboard:
https://your-ngrok-url/webhook.php - Webhook events are logged to
webhook.log
| Card Number | CVV | Result |
|---|---|---|
| 4084 0841 0841 0841 | 408 | Success |
| 4084 0841 0841 0842 | 408 | Failed |
PIN: 0000 | OTP: 123456