title: Ogone/Ingenico - An error has occurred; please try again later
body: <p>I am working with Ogone for making online payments in my PHP application but I face very strange behaviour. This is my form:</p>
  
  <pre><code> $sha = "ACCEPTURL=" . $accepturl . "&amp;id=" . $orderid . $options["ogone_SHA"] . 
       "AMOUNT=" . $total . $options["ogone_SHA"] .
       "CANCELURL=" . $declineurl . "&amp;id=" . $orderid . $options["ogone_SHA"] .
       "CURRENCY=EUR" . $options["ogone_SHA"] .
       "DECLINEURL=" . $declineurl . "&amp;id=" . $orderid . $options["ogone_SHA"] .
       "LANGUAGE=" . $lang . $options["ogone_SHA"] .
       "ORDERID=" . $orderid . $options["ogone_SHA"] .
       "PSPID=". $options["ogone_pspid"] . $options["ogone_SHA"];
  
    $sha1 = sha1($sha);
  
  
  &lt;form id="ogone" action="&lt;?=$options["ogone_url"]?&gt;" method="post"  target="_blank"&gt;
     &lt;input type="hidden" name="orderID" value="&lt;?=$orderid?&gt;" /&gt;
     &lt;input type="hidden" name="pspid" value="&lt;?=$options["ogone_pspid"]?&gt;" /&gt;
     &lt;input type="hidden" name="currency" value="EUR" /&gt;
     &lt;input type="hidden" name="language" value="&lt;?=$lang?&gt;" /&gt;
     &lt;input type="hidden" name="amount" value="&lt;?=$total?&gt;" /&gt;
     &lt;input type="hidden" name="accepturl" value="&lt;?=$accepturl?&gt;&amp;id=&lt;?=$orderid?&gt;" /&gt;
     &lt;input type="hidden" name="declineurl" value="&lt;?=$declineurl?&gt;&amp;id=&lt;?=$orderid?&gt;" /&gt;
     &lt;input type="hidden" name="cancelurl" value="&lt;?=$declineurl?&gt;&amp;id=&lt;?=$orderid?&gt;" /&gt;
     &lt;input type="hidden" name="SHASign" value="&lt;?=$sha1?&gt;" /&gt;
  
  &lt;noscript&gt;
    &lt;input type="submit" value="&lt;?=CONFIRM?&gt;" /&gt;
  &lt;/noscript&gt;
    &lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
   $(document).ready(function() {
       var options = {
          target:        '_blank'
      };
     $('#ogone').ajaxForm(options);
  
    document.getElementById('ogone').submit();
    setTimeout("document.location = 'index.php?reload=nocache'", 3000);
   });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>When submitting it for the first time in certain browser, I got an error when redirected to Ogone:</p>
  
  <blockquote>
    <p>An error has occurred; please try again later. If you are the owner or the integrator of this website, please log into the Ogone back office to see the details of the error. </p>
  </blockquote>
  
  <p>No details for the error in the error log in my ogone account.</p>
  
  <p>Submitting it again - everything is ok. Reproduced on every browser I tried - the very first submitting is unsuccessfull, after that everything is ok. I have tried to clear the browser history and cookies to see if this is related to the problem - no success.</p>
  
  <p>Any clue on what might be happening here will be appreciated.</p>