title: Perfect Money API integration error
body: <p>I am integrating Perfect Money on a project for Instant Payments. I am facing the errors here. I am applying all the information correctly but still its returning that the username and password supplied is incorrect. Here is my code.</p>
  
  <pre><code>if(isset($_POST['req_pay']))
  {
  $f=fopen('https://perfectmoney.is/acct/confirm.asp?AccountID=myaccount&amp;PassPhrase=mypassword&amp;Payer_Account=U10428073&amp;Payee_Account=U1234567&amp;Amount=1&amp;PAY_IN=1&amp;PAYMENT_ID=1223', 'rb');
  
          if($f===false){
             echo 'error openning url';
          }
  
          // getting data
          $out=array(); $out="";
          while(!feof($f)) $out.=fgets($f);
  
          fclose($f);
  
          // searching for hidden fields
          if(!preg_match_all("/&lt;input name='(.*)' type='hidden' value='(.*)'&gt;/", $out, $result, PREG_SET_ORDER)){
             echo 'Ivalid output';
             exit;
          }
  
          $ar="";
          foreach($result as $item){
             $key=$item[1];
             $ar[$key]=$item[2];
          }
  
          echo '&lt;pre&gt;';
          print_r($ar);
          echo '&lt;/pre&gt;';
  
  } 
  
  ?&gt;
  </code></pre>