iRecharge – Mobile Topup and Utility Bill Pay React JS Template Review
As the world becomes increasingly dependent on digital technologies, mobile recharge and utility bill payment services have become an essential aspect of modern life. iRecharge, a comprehensive React JS template, simplifies the process of top-up and bill payment with its robust features and easy-to-use interface.
Overview
iRecharge is a full-responsive online template designed specifically for mobile top-up and utility bill pay services. The template is built with React JS and Node JS, making it a seamless choice for businesses looking to launch their own online mobile top-up and bill payment platform.
Feature Lists
The iRecharge template boasts a wide range of features that make it a comprehensive solution for businesses:
- Login and registration pages for seamless user access
- User profile management
- Full frontend functionalities, including sliders and lists
- Slider banner and offer slider for promotional campaigns
- Features list page and receipt with print capabilities
- Easy-to-maintain clean code and project documentation
Demo
The demo link for iRecharge is https://irecharge.igensolutionsltd.com, which gives users an idea of what the template can do.
What You Get
By purchasing the iRecharge script, you will receive the following:
- Full source code
- Project documentation
Note
It’s important to note that live preview images files are not included in the source code. The images available in the demo are only for illustration purposes.
Changelog
Version 1.0
- Initial Release
Score
I give this template a score of 0, as it meets all the necessary criteria for a comprehensive mobile top-up and utility bill payment service. With its robust features, clean code, and easy-to-use interface, iRecharge is a great choice for businesses looking to establish their online presence in the mobile recharge and utility bill payment space.
User Reviews
Be the first to review “iRecharge – Mobile Topup and Utility Bill Pay React JS Template”
Introduction
iRecharge is a mobile topup and utility bill pay template built using React JS. This template provides a seamless and user-friendly experience for customers to recharge their mobile phones and pay their utility bills online. With this template, you can quickly set up a functional online recharge and bill pay platform without requiring extensive coding knowledge.
In this tutorial, we will guide you through the process of setting up and using the iRecharge template. We will cover the following topics:
- Setting up the template
- Configuring the template
- Adding mobile operators and utility bill providers
- Creating a recharge or bill pay request
- Handling payment processing
- Managing user accounts
Setting up the Template
To set up the iRecharge template, follow these steps:
- Clone the template from GitHub:
git clone https://github.com/react-template/irecharge.git
- Install the required dependencies:
npm install
- Start the development server:
npm start
- Open the template in your web browser:
http://localhost:3000
Configuring the Template
Before you can start using the template, you need to configure it to suit your needs. To do this, follow these steps:
- Create a new file called
config.js
in the root directory of the project. - In the
config.js
file, add the following code:export const API_URL = 'https://your-api-url.com'; // Replace with your API URL export const MOBILE_OPERATORS = [ { id: 1, name: 'Vodafone', slug: 'vodafone' }, { id: 2, name: 'MTN', slug: 'mtn' }, // Add more mobile operators as needed ]; export const UTILITY_BILL_PROVIDERS = [ { id: 1, name: 'Electricity', slug: 'electricity' }, { id: 2, name: 'Water', slug: 'water' }, // Add more utility bill providers as needed ];
Replace
https://your-api-url.com
with the URL of your API server.
Adding Mobile Operators and Utility Bill Providers
To add more mobile operators and utility bill providers, follow these steps:
- In the
MOBILE_OPERATORS
array in theconfig.js
file, add a new object with the following properties:id
: a unique identifier for the mobile operatorname
: the name of the mobile operatorslug
: a unique slug for the mobile operator
- In the
UTILITY_BILL_PROVIDERS
array in theconfig.js
file, add a new object with the following properties:id
: a unique identifier for the utility bill providername
: the name of the utility bill providerslug
: a unique slug for the utility bill provider
Creating a Recharge or Bill Pay Request
To create a recharge or bill pay request, follow these steps:
- Open the template in your web browser.
- Click on the "Recharge" or "Pay Bill" button.
- Select the mobile operator or utility bill provider you want to recharge or pay.
- Enter the phone number or account number for the recharge or bill pay request.
- Select the payment method (e.g. credit card, PayPal).
- Enter the payment details (e.g. credit card number, expiration date).
- Click the "Pay" button to complete the transaction.
Handling Payment Processing
The iRecharge template uses a third-party payment gateway to process payments. To handle payment processing, follow these steps:
-
In the
config.js
file, add the following code:export const PAYMENT_GATEWAY = 'stripe'; // Replace with your payment gateway export const PAYMENT_GATEWAY_SECRET_KEY = 'your-secret-key'; // Replace with your payment gateway secret key
Replace
stripe
with your payment gateway, andyour-secret-key
with your payment gateway secret key. - In the
payment.js
file, add the following code:import { API_URL } from '../config';
const paymentGateway = new Stripe(PAYMENT_GATEWAY_SECRET_KEY);
const handlePayment = async (amount, paymentMethod) => { const paymentIntent = await paymentGateway.createPaymentIntent({ amount, currency: 'usd', payment_method_types: ['card'], });
// Redirect the user to the payment gateway to complete the payment window.location.href = paymentIntent.url; };
This code creates a payment intent using the Stripe payment gateway, and redirects the user to the payment gateway to complete the payment.
**Managing User Accounts**
To manage user accounts, follow these steps:
1. Create a new file called `user.js` in the root directory of the project.
2. In the `user.js` file, add the following code:
```javascript
import { API_URL } from '../config';
const user = {
id: 1,
name: 'John Doe',
email: 'johndoe@example.com',
phoneNumbers: [
{ id: 1, number: '1234567890' },
],
};
const updateUser = async (newUser) => {
const response = await fetch(`${API_URL}/users/${user.id}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(newUser),
});
if (response.ok) {
user = newUser;
} else {
console.error('Error updating user');
}
};
const deleteUser = async () => {
const response = await fetch(`${API_URL}/users/${user.id}`, {
method: 'DELETE',
});
if (response.ok) {
user = null;
} else {
console.error('Error deleting user');
}
};
This code defines a user object with an ID, name, email, and phone numbers. It also defines two functions, updateUser
and deleteUser
, which update and delete the user object, respectively.
That's it! With these steps, you should now have a fully functional iRecharge template up and running.
Here is a complete settings example for iRecharge - Mobile Topup and Utility Bill Pay React JS Template:
API Settings
In the apiSettings.js
file, you can configure the API settings as follows:
export const apiSettings = {
apiEndpoint: 'https://api.example.com/api',
apiKey: 'YOUR_API_KEY',
apiSecret: 'YOUR_API_SECRET',
sandbox: true,
};
Replace https://api.example.com/api
with your actual API endpoint, and YOUR_API_KEY
and YOUR_API_SECRET
with your actual API key and secret.
Payment Gateway Settings
In the paymentGatewaySettings.js
file, you can configure the payment gateway settings as follows:
export const paymentGatewaySettings = {
paymentGateway: 'stripe',
stripePublicKey: 'YOUR_STRIPE_PUBLIC_KEY',
stripeSecretKey: 'YOUR_STRIPE_SECRET_KEY',
razorpayKey: 'YOUR_RAZORPAY_KEY',
razorpaySecretKey: 'YOUR_RAZORPAY_SECRET_KEY',
};
Replace stripe
with your preferred payment gateway, and YOUR_STRIPE_PUBLIC_KEY
and YOUR_STRIPE_SECRET_KEY
with your actual Stripe public and secret keys. Similarly, replace YOUR_RAZORPAY_KEY
and YOUR_RAZORPAY_SECRET_KEY
with your actual Razorpay keys.
Mobile Operator Settings
In the mobileOperatorSettings.js
file, you can configure the mobile operator settings as follows:
export const mobileOperatorSettings = {
operators: [
{
id: 'operator1',
name: 'Operator 1',
country: 'IND',
mcc: '404',
mnc: '10',
rate: 0.5,
},
{
id: 'operator2',
name: 'Operator 2',
country: 'USA',
mcc: '310',
mnc: '1',
rate: 0.8,
},
],
};
Add or remove mobile operators as needed, and configure the id
, name
, country
, mcc
, mnc
, and rate
properties for each operator.
Utility Bill Settings
In the utilityBillSettings.js
file, you can configure the utility bill settings as follows:
export const utilityBillSettings = {
providers: [
{
id: 'provider1',
name: 'Provider 1',
country: 'IND',
billTypes: ['electricity', 'water'],
},
{
id: 'provider2',
name: 'Provider 2',
country: 'USA',
billTypes: ['electricity', 'gas'],
},
],
};
Add or remove utility bill providers as needed, and configure the id
, name
, country
, and billTypes
properties for each provider.
Other Settings
In the otherSettings.js
file, you can configure other settings as follows:
export const otherSettings = {
currency: 'INR',
language: 'en',
timezone: 'Asia/Kolkata',
};
Configure the currency
, language
, and timezone
properties as needed.
Here are the features of the iRecharge - Mobile Topup and Utility Bill Pay React JS Template:
- Login Page
- Registration Page
- User Profile
- Contained with full frontend functionalities
- Slider Banner
- Offer slider
- Features List Page
- Receipt With Print
- Easy and clean code
- Documentation
Additionally, you will get:
- Full Source Code
- Project Documentation
Note that the live preview images are not included in the source code, only visible in the demo.
$19.00
There are no reviews yet.