This project implements a payment system using the Paystack and Stripe APIs for processing payments. It consists of both frontend and backend components.
- Collect payment details from users.
- Process payments securely using the Paystack and Stripe APIs.
- Display payment confirmation to users.
- Integration with backend server for processing payments and handling business logic.
-
Frontend:
- HTML
- CSS
- JavaScript
-
Backend:
- Go (Golang)
- Fiber framework
- GORM for database interaction
-
Payment Gateways:
- Paystack API
- Stripe API
- Clone the repository:
1. Clone the repository:
```bash
git clone <repository_url>
-
Set up the backend server:
- Navigate to the
backend
directory. - Install dependencies:
go mod tidy
. - Configure the database connection in
database/connectDB.go
. - Start the server:
go run main.go
.
- Navigate to the
-
Set up the frontend:
- Navigate to the
frontend
directory. - Open
index.html
in a web browser or host it on a web server.
- Navigate to the
-
Test the payment system:
- Enter payment details in the frontend form.
- Submit the form to process the payment.
- Check the backend logs for payment processing details.
-
Backend:
- Configure the database connection in
database/connectDB.go
. - Set the Paystack secret key in the environment variable or directly in the code.
- Configure the database connection in
-
Frontend:
- Update the Paystack public key in the JavaScript code (
app.js
). - Update........
- Update the Paystack public key in the JavaScript code (
This project is licensed under the MIT License.