Categories
Uncategorized

Australian Fire Donation

Categories
Uncategorized

Paypal IPN points to wrong WHMCS URL!

Paypal IPN points to wrong WHMCS URL!

It can get frustrating at times when you move you WHMCS folder or any other billing platform that uses PayPal recurring payments. Especially when using Instant Payment Notifications (IPN) through PayPal. This is due to the fact that you can not update their old subscription addresses without cancelling them and getting the people to start again.

What can be done to update old subscription IPN addresses?

I went on the hunt to find out what can be done and I came back with two options. One which was recommended by a friend and the other which was sent to me through WHMCS.

Option 1 (cPanel Option – Not Code):

  1. Open cPanel
  2. Scroll down to ‘Domain’ and click ‘redirects’
  3. Add a 301 (permanent redirect) from the old IPN location to the new one
  4. Click save and it will work!

Option 2 (Simple Coded Option)

  1. Open your file directory for your website.
  2. Locate the location | or | Create the directory of the old IPN location
  3. Create a file name (the same as the previous IPN)
    EG in WHMCS the PayPal IPN name was paypal.php
  4. Copy the code at the bottom of the page into the file
  5. Update where it says ‘enter the new url’ to the url of the new IPN location


IPN Code – WHMCS




/**
* WHMCS Callback Redirect Script
*
* This file can be used to redirect payment gateway callback requests from
* an old location to a new one preserving POST data.
*
* @author WHMCS Limited <[email protected]>
* @copyright Copyright (c) WHMCS Limited 2005-2017
*/

// Enter the new url the callback file is located at
$url = 'https://www.yourdomain.com/new/path/to/paypal.php';

// --- Do not edit below this line. ---

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($_POST));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
if (curl_errno($ch)) {
$response = 'Could not connect to new callback file: ' . curl_errno($ch) . ' - ' . curl_error($ch);
}
curl_close($ch);

echo $response;

To stay up to date with more web hosting and design tips and tricks follow us each week as we take you on a journey through the web hosters blog!

 

Need web hosting or a web design contact us today!

 

© Copyright 2019 | HBHosting | ABN 12 718 788 074 |
Categories
Uncategorized

How to change your PHP version in cPanel Hosting

How to change your PHP version in cPanel Hosting

How to change your PHP version in cPanel Hosting

Our cPanel servers support PHP versions 5.2 through to 5.6 and 7.4.

  1. Login to the HBHosting Client Area
  2. Select services and click the domain name you want to change.
  3. Click cPanel
  4. Scroll down to Software/Services and click [Select PHP Version]
  5. On the top left-hand side, choose the version you want to change your PHP to
  6. Click [Save]

Changes to the PHP version running on the cPanel Lightspeed server may take 2-5 minutes to be noticeable.

© Copyright 2019 | HBHosting | ABN 12 718 788 074 |
Categories
Uncategorized

New Web Hosting Plans

New Web Hosting Plans

Today we are proud to announce we have released a new set of hosting packages for businesses, small blogs and forums. These hosting packages provide greater Disc and Bandwidth allowance, as well as higher Cloudlinux CPU and RAM limits, plus some extra perks. Check out the new plans at https://hbhosting.com.au/australian-cpanel-web-hosting/

Following on our aim to keep our prices attainable by everyone we have three packages one starting from $4.99 per month!

Plan 1 - Starter - $4.99 Per Month
5 GB Disk Space
50 GB Bandwidth
1 GB Ram
100% CPU
2 MB/s I/O
Plan 2 - Standard - $15.99 per month
15 GB Disk Space
100 GB Bandwidth
2 GB Ram
200% CPU
4 MB/s I/O
Plan 3 - Pro - $25.99 per month
30 GB Disk Space
200 GB Bandwidth
3 GB Ram
300% CPU
6 MB/s I/O
© Copyright 2019 | HBHosting | ABN 12 718 788 074 |