Czy robił ktoś kiedyś automatyzacje w e-gold chodzi o to aby za pomocą biblioteki CURL wpłacić pieniądze z jednego konta na drugie.

Ja zrobiłem coś takiego.
  1. <?php
  2.  
  3. $curlargs = "&Payee_Account=000000000";
  4. $curlargs .= "&Amount=0.01";
  5. $curlargs .= "&PAY_IN=1";
  6. $curlargs .= "&WORTH_OF=GOLD";
  7. $curlargs .= "&Memo=automatic spend";
  8. $curlargs .= "&PassPhrase=xxx";
  9. $curlargs .= "&AccountID=11111111";
  10.  
  11. $c = curl_init();
  12. curl_setopt($c, CURLOPT_URL, "https://www.e-gold.com/acct/confirm.asp");
  13. curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0); 
  14. curl_setopt($c, CURLOPT_SSLCERT, 0);
  15. curl_setopt($c, CURLOPT_SSLCERTPASSWD, 0);
  16.  
  17. $ret = curl_exec($c);
  18.  
  19.  
  20. if (empty($ret)) {
  21.  // some kind of an error happened
  22.  die(curl_error($c));
  23.  curl_close($c); // close cURL handler
  24. } else {
  25.  $info = curl_getinfo($c);
  26.  curl_close($c); // close cURL handler
  27.  
  28.  if (empty($info['http_code'])) {
  29.  die("No HTTP code was returned");
  30.  } 
  31.  
  32. }
  33.  
  34. ?>


Niestety pokazuje się błąd "unable to set certificate file "

Na stronie e-gold jest przykladowy skrypt jak to zrobic w cgi ale przelozenie tego na php nie bardzo mi wychodzi, albo jest to wina mojego serwera (windows+apache bez SSL).

P.S. Tu jest link do instrukcji http://www.e-gold.com/docs/e-gold_automation.html