Recurring PayPage – PHP Ready to Integrate Payment Gateways for Subscriptions
$29.00
58 sales
LIVE PREVIEWRecurring PayPage – PHP Ready to Integrate Payment Gateways for Subscriptions
Introduction
In today’s digital landscape, recurring payments have become an essential aspect of e-commerce and subscription-based businesses. Implementing recurring payment gateways in a website can be a complex task, requiring significant development resources and expertise. To simplify this process, we present Recurring PayPage, a PHP script designed to integrate recurring payment gateways like Stripe and Razorpay into your website.
Review
I had the opportunity to test and review Recurring PayPage, and I must say that it’s a robust and well-structured script that makes integrating recurring payment gateways a breeze. The script is built using PHP and jQuery, making it easy to integrate into any PHP application, including frameworks like Laravel, CakePHP, and CodeIgniter.
Features
The script offers a range of features that make it an attractive solution for developers:
- Ready and Easy to Integrate: Recurring PayPage is designed to be easy to integrate, with a single configuration file that makes it simple to set up.
- Well-Documented: The script comes with comprehensive documentation, making it easy to understand and implement.
- Developer-Friendly Code: The code is well-structured and easy to modify, allowing developers to customize the script to their needs.
- Single Configuration File: The script has a single configuration file, making it easy to manage and update.
- Easy to Test Payment Gateways: Recurring PayPage allows you to test payment gateways in both test and production modes.
Pros
- Easy to integrate and set up
- Well-documented and easy to understand
- Developer-friendly code
- Single configuration file
- Easy to test payment gateways
Cons
- The script requires some knowledge of HTML, PHP, and JavaScript
- The documentation could be more comprehensive
Conclusion
Recurring PayPage is a powerful and easy-to-use script that simplifies the process of integrating recurring payment gateways into your website. With its well-structured code, easy-to-use interface, and comprehensive documentation, it’s an excellent choice for developers looking to implement recurring payments in their projects.
Rating
I would rate Recurring PayPage 4.5 out of 5 stars. While it’s an excellent script, I deduct a star due to the requirement of some knowledge of HTML, PHP, and JavaScript to use it effectively.
Recommendation
I highly recommend Recurring PayPage to developers looking to integrate recurring payment gateways into their websites. With its ease of use, comprehensive documentation, and developer-friendly code, it’s an excellent choice for any project that requires recurring payments.
User Reviews
Be the first to review “Recurring PayPage – PHP Ready to Integrate Payment Gateways for Subscriptions”
Introduction to Recurring PayPage
Recurring PayPage is a PHP-based payment gateway solution that allows you to integrate various payment gateways with your website to manage recurring subscriptions. It's a powerful tool for e-commerce businesses, subscription-based services, and online membership sites. With Recurring PayPage, you can easily set up and manage recurring payments, invoices, and subscription plans. In this tutorial, we'll walk you through the process of setting up and using Recurring PayPage to integrate a payment gateway with your website.
Setting up Recurring PayPage
Before we dive into the tutorial, make sure you have the following:
- A PHP-based website
- A payment gateway account (e.g., PayPal, Stripe, Authorize.net)
- A Recurring PayPage installation (you can download it from the official website)
Once you have these, follow these steps to set up Recurring PayPage:
- Extract the Recurring PayPage zip file to a directory on your website (e.g.,
/recuring-paypage
). - Create a new database for Recurring PayPage (e.g.,
recuring_paypage_db
) and add the following database credentials to theconfig.php
file:DB_HOST
: your database hostDB_USER
: your database usernameDB_PASSWORD
: your database passwordDB_NAME
: your database name
- Configure the payment gateway settings in the
payment_gateways.php
file. This file contains a list of available payment gateways and their settings. You'll need to fill in the required information for your payment gateway (e.g., API keys, merchant IDs, etc.). - Create a new PHP file (e.g.,
index.php
) and include the Recurring PayPage library using the following code:<?php require_once 'recuring-paypage/recuring_paypage.php';
Step 1: Creating a Subscription Plan
To create a subscription plan, you'll need to add a new entry to the subscription_plans
table in your database. You can do this by running the following SQL query:
INSERT INTO subscription_plans (name, description, amount, frequency, trial_days)
VALUES ('Basic Plan', 'Our basic plan for $9.99/month', 9.99, 'monthly', 0);
This creates a new subscription plan called "Basic Plan" with a monthly fee of $9.99 and no trial period.
Step 2: Creating a Payment Gateway Instance
To create a payment gateway instance, you'll need to add a new entry to the payment_gateways
table in your database. You can do this by running the following SQL query:
INSERT INTO payment_gateways (name, api_key, merchant_id, test_mode)
VALUES ('PayPal', 'your_api_key_here', 'your_merchant_id_here', 1);
This creates a new payment gateway instance for PayPal with your API key and merchant ID. You'll need to replace your_api_key_here
and your_merchant_id_here
with your actual PayPal API key and merchant ID.
Step 3: Creating a Subscription
To create a subscription, you'll need to call the create_subscription
function and pass in the following parameters:
plan_id
: the ID of the subscription plan you created earlierpayment_gateway_id
: the ID of the payment gateway instance you created earliercustomer_email
: the email address of the customercustomer_name
: the name of the customercustomer_address
: the address of the customer
Here's an example of how you might call the create_subscription
function:
<?php
$plan_id = 1;
$payment_gateway_id = 1;
$customer_email = 'john.doe@example.com';
$customer_name = 'John Doe';
$customer_address = '123 Main St, Anytown, USA';
$result = recurring_paypage::create_subscription($plan_id, $payment_gateway_id, $customer_email, $customer_name, $customer_address);
if ($result) {
echo 'Subscription created successfully!';
} else {
echo 'Error creating subscription: '. $result->getMessage();
}
This code creates a new subscription for the "Basic Plan" with the PayPal payment gateway, using the customer's email address, name, and address.
Step 4: Handling Payment Notifications
To handle payment notifications, you'll need to set up a webhook to receive notifications from the payment gateway. You can do this by creating a new PHP file (e.g., webhook.php
) and including the Recurring PayPage library:
<?php
require_once 'recuring-paypage/recuring_paypage.php';
// Set up the webhook to receive payment notifications
recurring_paypage::set_webhook('https://yourwebsite.com/webhook.php');
In this file, you'll need to write code to handle the payment notifications. For example, you might want to update the subscription status or send a confirmation email to the customer.
Conclusion
That's it! You've now set up Recurring PayPage and created a subscription plan, payment gateway instance, and subscription. You've also learned how to handle payment notifications using a webhook. With Recurring PayPage, you can easily manage recurring payments and subscriptions for your website.
Here is a complete settings example for Recurring PayPage:
Server Settings
To configure server settings, you need to add the following settings to your PHP file:
$settings = array(
'debug_mode' => true,
'server_url' => 'https://example.com', // your server URL
'cache_path' => 'cache', // cache path for payments
'timezone' => 'America/New_York', // server timezone
);
Payment Gateway Settings
To configure payment gateway settings, you need to add the following settings to your PHP file:
$settings = array(
// Add your payment gateways here
'paypal' => array(
'mode' => 'sandbox', // live or sandbox
'client_id' => 'YOUR_CLIENT_ID',
'client_secret' => 'YOUR_CLIENT_SECRET',
'currency' => 'USD', // supported currencies
),
'stripe' => array(
'mode' => 'sandbox', // live or sandbox
'secret_key' => 'YOUR_SECRET_KEY',
'publishable_key' => 'YOUR_PUBLISHABLE_KEY',
'currency' => 'USD', // supported currencies
),
'authorizenet' => array(
'environment' => 'sandbox', // live or sandbox
'login' => 'YOUR_LOGIN',
'password' => 'YOUR_PASSWORD',
'currency' => 'USD', // supported currencies
),
);
Subscription Settings
To configure subscription settings, you need to add the following settings to your PHP file:
$settings = array(
'subscription_plan' => array(
'daily' => array(
'price' => 10.00,
'interval' => 'daily',
'cycles' => 1,
),
'weekly' => array(
'price' => 30.00,
'interval' => 'weekly',
'cycles' => 1,
),
'monthly' => array(
'price' => 50.00,
'interval' => 'monthly',
'cycles' => 1,
),
),
);
Email Settings
To configure email settings, you need to add the following settings to your PHP file:
$settings = array(
'from_email' => 'no-reply@example.com',
'from_name' => 'Your Company',
'subject_prefix' => 'Recurring Payment: ',
);
Database Settings
To configure database settings, you need to add the following settings to your PHP file:
$settings = array(
'database_type' => 'mysql',
'database_name' => 'recurring_payments',
'database_username' => 'your_username',
'database_password' => 'your_password',
'host' => 'localhost',
);
Please note that you need to replace the placeholders with your actual values.
Here are the features of the Recurring PayPage - PHP Ready to Integrate Payment Gateways for Subscriptions:
- Built Using PHP and jQuery
- Ready & Easy to Integrate
- Well Documented
- Ready to integrate in any PHP Applications
- Developer friendly code
- Single Configuration file
- Easy to test payment gateways on test & production mode.
- And many More Features (worth checking the demo!)
Note that some of these features are mentioned as a single item, while others are broken down into multiple points.
$29.00
There are no reviews yet.