This project is a movie booking system with integrated payment processing using Stripe and Razorpay.
- PHP 7.4 or higher
- Composer (for installing dependencies)
- Stripe and/or Razorpay account
-
Install the required dependencies:
composer install -
Update the API keys in the configuration files:
- For Stripe: Edit
stripe-config.phpwith your Stripe API keys - For Razorpay: Edit
razorpay-config.phpwith your Razorpay API keys
- For Stripe: Edit
-
Set up the database tables:
- Import the
payment_tables.sqlfile into your MySQL database
- Import the
-
Configure webhooks:
- Stripe: Point your Stripe webhook to
https://your-domain.com/webhook_handler.php - Razorpay: Point your Razorpay webhook to
https://your-domain.com/webhook_handler.php
- Stripe: Point your Stripe webhook to
For testing purposes, you can use the following test cards:
- Successful payment: 4242 4242 4242 4242
- Failed payment: 4000 0000 0000 0002
- Successful payment: 4111 1111 1111 1111
- Failed payment: 5104 0600 0000 0008
- Real-time payment processing
- Multiple payment gateway options
- Webhook handling for payment status updates
- Admin dashboard for payment management