Current time: 05-24-2012, 02:09 AM Hello There, Guest! (LoginRegister)

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Paid hosting - not working
10-26-2009, 04:57 PM (This post was last modified: 10-26-2009 06:14 PM by Booher.)
Post: #1
Paid hosting - not working
Alright, when i try to order a plan it creates account and everything, but then i goto the invoice and click pay, but it just says "Please wait, your order is being processed..." but never redirects to paypal.

(tested) fix:
open includes/paypal/paypal.class.php and replace your whole submit_paypal_post() function with this:
Code:
function submit_paypal_post() {
     /********************************************************************************​\
    || Bug fix for TheHostingTool by Booher                                          ||
     \*******************************************************************************​**/
      // this function actually generates an entire HTML page consisting of
      // a form with hidden elements which is submitted to paypal via the
      // BODY element's onLoad attribute.  We do this so that you can validate
      // any POST vars from you custom form before submitting to paypal.  So
      // basically, you'll have your own form which is submitted to your script
      // to validate the data, which in turn calls this function to create
      // another hidden form and submit to paypal.

      // The user will briefly see a message on the screen that reads:
      // "Please wait, your order is being processed..." and then immediately
      // is redirected to paypal.

      echo "<html>\n";
      echo "<head><title>Processing Payment...</title></head>\n";
      echo "<body>\n";
      echo "<center><h3>Please wait, your order is being processed...</h3></center>\n";
      echo "<form method=\"post\" name=\"form\" action=\"".$this->paypal_url."\">\n";

      foreach ($this->fields as $name => $value) {
         echo "<input type=\"hidden\" name=\"$name\" value=\"$value\">";
      }

      echo "</form>\n";
      ?>
      <script>
      document.form.submit();
      </script>
      <?php
      echo "</body></html>\n";
    
   }

I tested it, and it worked perfectly Smile -- I think the problem was that <body> was already defined?
Find all posts by this user
10-26-2009, 06:08 PM
Post: #2
RE: Paid hosting - not working
What browser you on?

Jonny H - THT Main Developer & Founder
Find all posts by this user
10-26-2009, 06:13 PM
Post: #3
RE: Paid hosting - not working
The latest firefox.
Find all posts by this user
10-26-2009, 06:33 PM
Post: #4
RE: Paid hosting - not working
The double body tags could have possibly confused the jQuery Library. Possibly.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
10-27-2009, 04:56 AM
Post: #5
RE: Paid hosting - not working
Well I've changed the whole way of how it works in 1.2.1. So that shouldn't be a problem in the new release.

Jonny H - THT Main Developer & Founder
Find all posts by this user
12-26-2009, 05:27 PM
Post: #6
RE: Paid hosting - not working
So if I edit that file, will the paid option work?

thank you
Find all posts by this user
12-26-2009, 08:43 PM
Post: #7
RE: Paid hosting - not working
the paid option works aleady. this modification is not supported and is use at your own risk.

Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Visit this user's website Find all posts by this user
12-27-2009, 05:49 PM
Post: #8
RE: Paid hosting - not working
(12-26-2009 08:43 PM)Nick Wrote:  the paid option works aleady. this modification is not supported and is use at your own risk.

Ok I will test again this and will report here Smile

Thanks for the reply
Find all posts by this user
12-29-2009, 05:09 PM
Post: #9
RE: Paid hosting - not working
(12-26-2009 08:43 PM)Nick Wrote:  the paid option works aleady. this modification is not supported and is use at your own risk.
Confimed twice, the paid options does not work! Sad
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)