E-Gold Test / Sandbox Server

Unlike Paypal, E-Gold does not provide a way to test your shopping cart integration script. They only provide you with possibilty to transfer your e-gold money to your own account, but this require you to pay them some amount of gold. But for development, we need a sandbox server to test of our script for free :)

I found a site that provide you with a sandbox server for e-gold in here ( http://egold.narkozateam.com/ ). But i found that this server does not provide me to information of wether my variable was posted correctly. Also, this sandbox only provided you with a good flow, which mean this server assumes that you submitted good variables without mistakes. So i tried to make my own e-gold sandbox server, i hope a better one, based on information provided by e-gold SCI manual.

With this e-gold sandbox server, you can test all your variables and see wether they were posted. For your information, i treat all currency as USD so there were no currency conversion. To use this sandbox server, just point your e-gold shopping cart script to use this url : http://emugold.handilim.web.id/payments.php instead of this https://www.e-gold.com/sci_asp/payments.asp . So your script would be somewhat like this :
<form action=”http://emugold.handilim.web.id/payments.php” method=”POST”>
<p>
<input type=”hidden” name=”PAYEE_ACCOUNT” value=”900123″>
<input type=”hidden” name=”PAYEE_NAME” value=”High Tech Widgets”>
<input type=”hidden” name=”PAYMENT_AMOUNT” value=”109.99″>
<input type=”hidden” name=”PAYMENT_UNITS” value=”1″>
<input type=”hidden” name=”PAYMENT_METAL_ID” value=”1″>
<input type=”hidden” name=”STATUS_URL”
value=”https://www.high-tech.com/cgi-bin/xact.exe”>
<input type=”hidden” name=”PAYMENT_URL”
value=”https://www.high-tech.com/cgi-bin/chkout1.exe”>
<input type=”hidden” name=”NOPAYMENT_URL”
value=”https://www.high-tech.com/cgi-bin/chkout2.exe”>
<input type=”hidden” name=”BAGGAGE_FIELDS”
value=”ORDER_NUM CUST_NUM”>
<input type=”hidden” name=”ORDER_NUM” value=”9801121”>
<input type=”hidden” name=”CUST_NUM” value=”2067609”>
<input type=”submit” name=”PAYMENT_METHOD” value=”e-gold account”>
</p>
</form>

You can also try our demo in this site: http://emugold.handilim.web.id/

I had used this sandbox server for my own shopping cart on Perkakasku.com and it was running well. I hope this sandbox server would be useful for you and everyone. :)

Pengalaman Implementasi Paypal

Setelah Paypal mengijinkan orang Indonesia untuk menerima pembayaran, saya mencoba untuk mengintegrasikan payment gateway dari Paypal dengan website Perkakasku.com. Perkakasku.com adalah toko online yang saya buat sendiri, sehingga untuk menginterasikan paypal juga harus manual juga.

Untuk dapat menerima pembayaran dengan kartu kredit dari paypal, anda harus membuat account terlebih dahulu, atau bila sudah memiliki account, account anda harus di upgrade ke Premiere / Bussiness Account. Bila menggunakan web shop dari OsCommerce, atau ZenCart atau lainnya, anda tinggal menambahkan plugin paypal.

Untuk yang toko online-nya custom made, ada 3 pilihan yang bisa digunakan : melalui form HTML, Name-Valued Pair (NVP) API, dan SOAP API. Dari semua itu yang paling mudah jelas form HTML, tapi saya sedikit ragu dengan keamanannya karena isi form bisa disadap. Yang paling sulit SDK API, saya baca manualnya saja sudah bingung, gimana lagi pakainya. NVP API mirip dengan SOAP API tapi lebih mudah.

Continue reading