https://github.com/sha-env/Payment-Gateway-Website
Simple Payment Gateway Website
https://github.com/sha-env/Payment-Gateway-Website
midtrans midtrans-php midtrans-snap
Last synced: 9 months ago
JSON representation
Simple Payment Gateway Website
- Host: GitHub
- URL: https://github.com/sha-env/Payment-Gateway-Website
- Owner: guanshiyin28
- Created: 2024-12-16T03:32:33.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-04T18:16:15.000Z (over 1 year ago)
- Last Synced: 2025-01-10T01:56:09.220Z (over 1 year ago)
- Topics: midtrans, midtrans-php, midtrans-snap
- Language: PHP
- Homepage: https://simple-payment-gateaway.guanshiyinnn.com/
- Size: 7.22 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Payment Gateway Website
This repository serves as a foundation for building a secure and efficient payment gateway website.
## Purpose of This Repository
This repository contains the source code for a payment gateway website. The project demonstrates fundamental principles of secure online transactions and provides a solid foundation for further exploration of payment gateway integrations.
## Demonstration
Check out the live demo of the Payment Gateway Website [here](https://simple-payment-gateaway.guanshiyinnn.com/).
### Program Function Demonstration
Here is a demonstration of the basic payment processing function:
```javascript
// filepath: /opt/lampp/htdocs/Payment-Gateway-Website/src/paymentProcessor.js
function processPayment(amount, paymentMethod) {
// ...existing code...
if (paymentMethod === "creditCard") {
// Process credit card payment
} else if (paymentMethod === "paypal") {
// Process PayPal payment
}
// ...existing code...
return paymentStatus;
}
```
## Features
- Secure payment processing
- Multiple payment methods (credit card, PayPal, etc.)
- User-friendly interface
- Real-time transaction updates
## Technologies Used
- HTML5
- CSS3
- JavaScript
## Project Setup
1. **Install XAMPP**
2. **Clone this repository**
```bash
git clone https://github.com/guanshiyin28/Payment-Gateway-Website.git
```
3. **Direct to directory**
```bash
cd Payment-Gateway-Website
```
4. **Move the project to the XAMPP htdocs directory**
```bash
mv Payment-Gateway-Website /opt/lampp/htdocs/
```
## Steps to Run
1. **Start the Apache server in XAMPP**
2. **Open your web browser and navigate to**
```bash
http://localhost/Payment-Gateway-Website
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.