Explorar el Código

Merge pull request #16 from own3mall/master

Fix for PayPal 404 Error on Payment Submit
OwN-3m-All hace 2 años
padre
commit
9c597b94b6
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      modules/simple-billing/paypal.class.php

+ 2 - 5
modules/simple-billing/paypal.class.php

@@ -151,7 +151,7 @@ class paypal_class {
       echo "<body onLoad=\"document.forms['paypal_form'].submit();\">\n";
       echo "<form method=\"post\" name=\"paypal_form\" ";
       echo "action=\"".$this->paypal_url."\">\n";
-
+	  echo '<input type="hidden" name="cmd" value="_xclick">';
       foreach ($this->fields as $name => $value) {
          echo "<input type=\"hidden\" name=\"$name\" value=\"$value\"/>\n";
       }      
@@ -267,7 +267,4 @@ class paypal_class {
  
       echo "</table><br>"; 
    }
-}         
-
-
- 
+}