Skip to content

A prototype simulating a WhatsApp interface with a NETS payment button. Users can enter a payment amount and generate a NETS-compatible QR code to scan and complete transactions.

License

Notifications You must be signed in to change notification settings

Haoming9527/WhatNETS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WhatNETS - NETS x WhatsApp Integration Prototype

React Node.js License Hackathon

A prototype demonstrating the integration of NETS payment functionality within WhatsApp's messaging interface. This project was developed for the PolyFinTech100 API Hackathon 2025 to showcase how seamless payment experiences can be embedded into familiar messaging platforms.

🎯 Project Overview

WhatNETS proposes a strategic collaboration between NETS and WhatsApp to increase adoption and usage of NETS among youth. The prototype demonstrates how payment functionality can be seamlessly integrated into a familiar messaging platform, providing users with a convenient way to make payments during their conversations.

Key Features

  • WhatsApp-like Interface: Authentic messaging platform simulation
  • NETS Payment Integration: QR code generation for payment processing
  • Real-time Transaction Status: Success/failure status tracking
  • Responsive Design: Mobile-first approach with modern UI/UX
  • Secure Payment Flow: End-to-end payment simulation

πŸš€ Quick Start

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn package manager

Installation

  1. Clone the repository

    git clone <repository-url>
    cd WhatNETS
  2. Install dependencies

    npm install
  3. Start the development server

    npm start
  4. Open your browser Navigate to http://localhost:3000 to view the application.

πŸ“± How It Works

User Flow

  1. WhatsApp Interface: Users interact with a familiar WhatsApp-like chat interface
  2. NETS Button: Click the NETS button in the navigation to initiate payment
  3. Amount Input: Enter the payment amount on the payment page
  4. QR Code Generation: System generates a QR code based on the entered amount
  5. Payment Processing: Scan the QR code using the NETS Payment Simulator App
  6. Status Confirmation: View transaction success or failure status

Demo Walkthrough

  1. Start at the home page with the WhatsApp interface
  2. Click the NETS icon in the top navigation
  3. Enter a payment amount (e.g., $10.00)
  4. Generate and scan the QR code
  5. View the transaction status page

πŸ› οΈ Technology Stack

  • Frontend Framework: React 18.3.1
  • Routing: React Router DOM 6.23.1
  • UI Components: Material-UI 5.15.20
  • Icons: Font Awesome 6.7.2, React Icons 5.5.0
  • HTTP Client: Axios 1.7.2
  • Cryptography: js-sha256 0.11.0
  • Styling: CSS3 with custom components

πŸ“ Project Structure

WhatNETS/
β”œβ”€β”€ public/                 # Static assets
β”‚   β”œβ”€β”€ index.html         # Main HTML template
β”‚   └── WhatsApp.ico       # App icon
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/            # Images and static files
β”‚   β”‚   β”œβ”€β”€ NETSPay.png
β”‚   β”‚   β”œβ”€β”€ WhatsApp.png
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ netsQr/            # NETS QR functionality
β”‚   β”‚   └── views/
β”‚   β”‚       β”œβ”€β”€ HomePage.jsx
β”‚   β”‚       └── netsQrSamplePage.jsx
β”‚   β”œβ”€β”€ txnNetsStatus/     # Transaction status pages
β”‚   β”‚   └── views/
β”‚   β”‚       β”œβ”€β”€ txnNetsSuccessStatusPage.jsx
β”‚   β”‚       └── txnNetsFailStatusPage.jsx
β”‚   β”œβ”€β”€ App.js             # Main application component
β”‚   β”œβ”€β”€ config.js          # Configuration settings
β”‚   └── index.js           # Application entry point
β”œβ”€β”€ package.json           # Dependencies and scripts
└── README.md             # Project documentation

🎨 Features

WhatsApp Interface Simulation

  • Authentic chat interface with contact list
  • Realistic message bubbles and timestamps
  • Search functionality and navigation icons
  • Desktop notification prompts

NETS Payment Integration

  • QR code generation based on payment amount
  • Secure payment flow simulation
  • Integration with NETS Payment Simulator App
  • Real-time transaction status updates

User Experience

  • Intuitive navigation between chat and payment
  • Responsive design for mobile and desktop
  • Loading states and progress indicators
  • Clear success/failure feedback

πŸš€ Available Scripts

Command Description
npm start Runs the app in development mode
npm test Launches the test runner
npm run build Builds the app for production
npm run eject Ejects from Create React App

Development

npm start

Production Build

npm run build
  • Creates optimized production build
  • Minified and hashed filenames
  • Ready for deployment

πŸ”§ Configuration

The application uses environment variables for configuration. Create a .env file in the root directory:

REACT_APP_API_URL=your_api_endpoint
REACT_APP_NETS_ENDPOINT=your_nets_endpoint

πŸ“± Mobile Responsiveness

The application is designed with a mobile-first approach and includes:

  • Responsive breakpoints for different screen sizes
  • Touch-friendly interface elements
  • Optimized layouts for mobile devices
  • Progressive Web App capabilities

πŸ”’ Security Considerations

  • This is a prototype for demonstration purposes
  • No real financial transactions are processed
  • QR codes are generated for simulation only
  • All payment data is mock data

🀝 Contributing

This project was developed as part of the PolyFinTech100 API Hackathon 2025. For contributions or questions:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Disclaimer

This is a prototype developed for educational and demonstration purposes only.

  • Not an official integration of NETS or WhatsApp
  • No real financial transactions are processed
  • Built solely for the PolyFinTech100 API Hackathon 2025
  • Demonstrates technical feasibility and user experience concepts

πŸ™ Acknowledgments

  • PolyFinTech100 API Hackathon 2025 for the opportunity
  • NETS for providing the payment infrastructure
  • WhatsApp for the messaging platform inspiration
  • React Community for the excellent development tools

πŸ“ž Support

For questions or support regarding this prototype:

  • Create an issue in the repository
  • Contact the development team
  • Refer to the hackathon documentation

Built with ❀️ for the PolyFinTech100 API Hackathon 2025

About

A prototype simulating a WhatsApp interface with a NETS payment button. Users can enter a payment amount and generate a NETS-compatible QR code to scan and complete transactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published