Ja zrobiłem coś takiego.
<?php $curlargs = "&Payee_Account=000000000"; $curlargs .= "&Amount=0.01"; $curlargs .= "&PAY_IN=1"; $curlargs .= "&WORTH_OF=GOLD"; $curlargs .= "&Memo=automatic spend"; $curlargs .= "&PassPhrase=xxx"; $curlargs .= "&AccountID=11111111"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, "https://www.e-gold.com/acct/confirm.asp"); curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($c, CURLOPT_SSLCERT, 0); curl_setopt($c, CURLOPT_SSLCERTPASSWD, 0); $ret = curl_exec($c); // some kind of an error happened curl_close($c); // close cURL handler } else { $info = curl_getinfo($c); curl_close($c); // close cURL handler } } ?>
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