A demonstration project showcasing a payment checkout system integrated with a shopping cart interface. This project uses Checkout.com's Web Components for payment processing and features a responsive design with real-time updates.
This project demonstrates:
- Integration with Checkout.com's payment system
- Real-time shopping cart functionality with quantity controls
- Dynamic price updates
- Responsive design principles
- Toast notifications for payment status
- HTML5
- CSS3
- JavaScript (ES6+)
- Checkout.com Web Components
- Font Awesome Icons
- Node.js
- Express.js
Before running this project, ensure you have:
- Node.js installed
- A Checkout.com account with API credentials
- Git for version control
-
Clone the repository: git clone [repository-url] cd checkout-payment-demo
-
Install dependencies: npm install
-
Configure your Checkout.com credentials in
app.js
: const PUBLIC_KEY = "your_public_key_here";
-
Start the server: node server.js
-
Open your browser and navigate to: http://localhost:3000
- Secure payment handling through Checkout.com
- Real-time payment status updates
- Toast notifications for success/failure
- Dynamic quantity adjustments
- Real-time price calculations
- Responsive cart interface
- Company logo integration
-
The shopping cart displays on the right side with:
- Product details
- Quantity controls
- Real-time price updates
-
The payment form on the left side:
- Updates total amount based on cart
- Processes payments securely
- Shows status notifications
-
Testing
- Use Checkout.com test cards:
- Card Number: 4242 4242 4242 4242
- Expiry Date: Any future date
- CVV: Any 3 digits
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License.
- Checkout.com for their Web Components
- Font Awesome for icons