Gamexeon.com : Situs, Portal dan Forum Komunitas PC, Online, Handheld, dan Video Games Indonesia home
Gamexeon.com : Situs, Portal dan Forum Komunitas PC, Online, Handheld, dan Video Games Indonesia Logo


Computer Science Programming, System Design, etc


Selamat datang di Gamexeon Forum !

Saat ini kamu sepertinya masih menjadi tamu saja yang hanya dapat memanfaatkan situs ini secara terbatas. Dengan bergabung bersama kami, kamu dapat menanyakan semuanya mulai dari panduan sebuah game sampai utak atik game dan hardware. Banyak fitur lain seperti blogging, fasilitas realtime feeds, video post, poll dan lain sebagainya sebagai sarana diskusi juga disertakan dan siap digunakan oleh siapapun. Registrasinya cepet dan gampang kok, nggak bertele tele, makanya itu daftar sekarang!

Kalo ada masalah mengenai pendaftaran dan lain sebagainya, hubungi kami segera.
Kalau mau lihat index forum aktif yang sedang melakukan diskusi, kamu bisa klik disini .
Kalau mau tau apa saja yang sedang berlangsung di GX secara realtime, kamu bisa klik Newpost. Nggak usah di tutup lagi, nanti dia update sendiri :)

Reply
 
LinkBack Thread Tools Display Modes
Old
  (#1 (permalink))
ZeAL (Offline)
Moderator
ZeAL is on a distinguished roadZeAL is on a distinguished roadZeAL is on a distinguished road
 
ZeAL's Avatar
 
Posts: 677
Join Date: Jul 2005
Location: Antara langit dan bumi...
Rep Power: 6
Points: (Donate)


Points: 9,880, Level: 10
Points: 9,880, Level: 10 Points: 9,880, Level: 10 Points: 9,880, Level: 10
Level up: 92%, 170 Points needed
Level up: 92% Level up: 92% Level up: 92%
Activity: 31%
Activity: 31% Activity: 31% Activity: 31%

[ASK] E-Gold payment interface php script - 12-09-07, 10:43

Guys, gue nyari script php yang bisa jadi payment interface untuk e-gold.
Dulu kayaknya om macam pernah ngepost di devsquare, gue nyari2 lagi gak ada yang tutorialnya sejelas itu.. (Termasuk dari web nya e-gold nya sendiri).

So, om macan bisa gak di post disini lagi?

Atau dari temen2 lain siapa tau ada. Kalo bisa di share donk..


Thanks in advance..




MonyetPinter.com | FJBex.com | ikasema.org | do i know you?
   
Reply With Quote

Sponsored Links

Old
  (#2 (permalink))
unwinged (Offline)
Womanizer
unwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to allunwinged is a name known to all
 
unwinged's Avatar
 
View unwinged's System
Posts: 52,427
Join Date: Dec 2004
Location: Jakarta
Rep Power: 123
Points: (Donate)


Status : Mengejar cita cita baru!
Points: 573,921, Level: 76
Points: 573,921, Level: 76 Points: 573,921, Level: 76 Points: 573,921, Level: 76
Level up: 77%, 3,529 Points needed
Level up: 77% Level up: 77% Level up: 77%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
User owns 1x Stik

12-09-07, 15:10

payment interface maksudnya ?
khan dari e-gold nya sendiri udah langsung ada..
   
Reply With Quote
Old
  (#3 (permalink))
ZeAL (Offline)
Moderator
ZeAL is on a distinguished roadZeAL is on a distinguished roadZeAL is on a distinguished road
 
ZeAL's Avatar
 
Posts: 677
Join Date: Jul 2005
Location: Antara langit dan bumi...
Rep Power: 6
Points: (Donate)


Points: 9,880, Level: 10
Points: 9,880, Level: 10 Points: 9,880, Level: 10 Points: 9,880, Level: 10
Level up: 92%, 170 Points needed
Level up: 92% Level up: 92% Level up: 92%
Activity: 31%
Activity: 31% Activity: 31% Activity: 31%

12-09-07, 19:00

Biar kayak di shoping cart gituh.. Jadi pembayaran dilakukan secara otomatis..

Jadi pembeli tinggal pilih dari daftar dan pilih BUY! nanti keluar halaman baru dari e-gold untuk minta password, dsb. Sementara field harga yang harus ditransfer sudah terisi dan tidak bisa dirubah. Nanti di submit, dan kalo berhasil e-gold akan menuju halaman yang udah kita siapkan..

Contoh yang ada di web e-gold gak begitu jelas.. gue gak begitu ngerti cara kerjanya, terutama proses setelah transaksi.. (terutama authentikasi keberhasilan transaksi). Nah, script yang dulu pernah di post om macan sangat2 jelas.. Sayangnya post-nya dah gak ada...
Gue gooling sampe pegel gak ketemu yang bener2 jelas scriptnya.. kebanyakan copy-paste dari web e-gold itu sendiri..

Ada berupa PHP Class, tapi sayangnya kudu bayar..
Gue nyari di sourceforge gak ketemu..
Gue nyari di hotscripts juga gak ketemu..
Gue nyari di forum2 warez juga gak ketemu..




MonyetPinter.com | FJBex.com | ikasema.org | do i know you?
   
Reply With Quote
Old
  (#4 (permalink))
white_tiger (Offline)
Gamexeon Boss
white_tiger will become famous soon enoughwhite_tiger will become famous soon enoughwhite_tiger will become famous soon enoughwhite_tiger will become famous soon enough
 
white_tiger's Avatar
 
Posts: 5,593
Join Date: Jun 2005
Location: Sidoarjo
Rep Power: 17
Points: (Donate)


Points: 49,836, Level: 23
Points: 49,836, Level: 23 Points: 49,836, Level: 23 Points: 49,836, Level: 23
Level up: 36%, 2,914 Points needed
Level up: 36% Level up: 36% Level up: 36%
Activity: 34%
Activity: 34% Activity: 34% Activity: 34%

14-09-07, 07:31

e-gold is my favorite online payment method and i'll share how to integrate it with your script.

it is documented at This document describes how to interface a web-based "shopping cart" system to the e-gold payment system

here i made simpler one, and you just need to modify it to suit your requirement.

first, you must have a form to start the payment

HTML Code:
<FORM ACTION="https://www.e-gold.com/sci_asp/payments.asp" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="PAYEE_NAME" VALUE="YOUR EGOLD NAME">
<INPUT TYPE="HIDDEN" NAME="PAYMENT_ID" VALUE="SEE NOTES 1">
<INPUT TYPE="HIDDEN" NAME="PAYEE_ACCOUNT" VALUE="YOUR EGOLD NUMBER">
<INPUT TYPE="HIDDEN" NAME="PAYMENT_URL_METHOD" VALUE="POST">
<INPUT TYPE="HIDDEN" NAME="PAYMENT_URL" VALUE="SEE NOTES 2">
<INPUT TYPE="HIDDEN" NAME="CUSTOMERID" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="BAGGAGE_FIELDS" VALUE="CUSTOMERID">
<INPUT TYPE="HIDDEN" NAME="NOPAYMENT_URL_METHOD" VALUE="POST">
<INPUT TYPE="HIDDEN" NAME="NOPAYMENT_URL" VALUE="SEE NOTES 3">
<INPUT TYPE="HIDDEN" NAME="STATUS_URL" VALUE="SEE NOTES 4">
<INPUT TYPE="HIDDEN" NAME="SUGGESTED_MEMO" VALUE="SEE NOTES 5">
<INPUT TYPE="HIDDEN" NAME="PAYMENT_METAL_ID" VALUE=1>
<INPUT TYPE="HIDDEN" NAME="PAYMENT_UNITS" VALUE=1>
<INPUT TYPE="HIDDEN" NAME="FORCED_PAYER_ACCOUNT" VALUE="SEE NOTES 6">
Amount :
<input name="PAYMENT_AMOUNT" type="text" value="1" size="5" />	USD
<br>
<INPUT TYPE="submit"  NAME="PAYMENT_METHOD" VALUE="Pay">
</FORM>
Notes 1 : Payment ID : here you can put an ID such as transaction ID, user ID, or something that you can connect with your database.

Notes 2 : this link will called after user done payment

Notes 3 : this link will called when user cancel to pay

Notes 4 : this link will called by egold, egold will send the payment information to this link.

Notes 5 : memo that you suggest

Notes 6 : if you already know your customer's e-gold number, you can put here. if you didn't put any number here, customer will entry their egold number.

ok, now for notes 4,
for example, you have domain www.domain.com ; place http://www.domain.com/egpay.php at notes 4.

egpay.php will retrieve information directly from egold.... you can do some query into your DB at this file... or send a report email to you.

here is the content of egpay.php
PHP Code:
<?

//your alternate password
$altpass="your egold alternate passphrase";


//=======================
$payee_account=$_POST['PAYEE_ACCOUNT'];
$payment_id=$_POST['PAYMENT_ID'];
$payment_amount=$_POST['PAYMENT_AMOUNT'];
$payment_units=$_POST['PAYMENT_UNITS'];
$payment_metal_id=$_POST['PAYMENT_METAL_ID'];
$payment_batch_num=$_POST['PAYMENT_BATCH_NUM'];
$payer_account=$_POST['PAYER_ACCOUNT'];
$actual_payment_ounces=$_POST['ACTUAL_PAYMENT_OUNCES'];
$usd_per_ounce=$_POST['USD_PER_OUNCE'];
$feeweight=$_POST['FEEWEIGHT'];
$v2_hash=$_POST['V2_HASH'];
$timestampgmt=$_POST['TIMESTAMPGMT'];
$alpp=strtoupper(md5($altpass));
$v2hash="$payment_id:$payee_account:$payment_amount:$payment_units:$payment_metal_id:$payment_batch_num:$payer_account:$alpp:$actual_payment_ounces:$usd_per_ounce:$feeweight:$timestampgmt";
$v2hashgen=strtoupper(md5($v2hash));
if (
$v2_hash==$v2hashgen )
{
    
$eg_payment_id=$payment_id;
    
$eg_amount=$payment_amount;
    
$eg_payer=$payer_account;
    
$eg_batch=$payment_batch_num;
    
    
//do action here
    //put query or mail function here
        //notes 7
}
?>
notes 7 : you can put some query here or make a mail function that will send you an email. i've put 4 variable that you can use... feel free to modify it to suit your case.

any bug/suggestion/error, plase post here.
i've using it since long time ago, but in this post, i made it simpler.
please do a testing before you use it. (spend 0,01$ egold from your accoun into your accoun to test it )

enjoy !



Inet is my campus, Google is my teacher, Wikipedia is my book - Iwe 2007
Nothing can make money as good as money itself - Iwe 2008

jangan ngejunk selain di freechat
   
Reply With Quote
Old
  (#5 (permalink))
ZeAL (Offline)
Moderator
ZeAL is on a distinguished roadZeAL is on a distinguished roadZeAL is on a distinguished road
 
ZeAL's Avatar
 
Posts: 677
Join Date: Jul 2005
Location: Antara langit dan bumi...
Rep Power: 6
Points: (Donate)


Points: 9,880, Level: 10
Points: 9,880, Level: 10 Points: 9,880, Level: 10 Points: 9,880, Level: 10
Level up: 92%, 170 Points needed
Level up: 92% Level up: 92% Level up: 92%
Activity: 31%
Activity: 31% Activity: 31% Activity: 31%

14-09-07, 07:54

Nah, ini dia... Manthaaab..!!!


Thanks, om macan...




MonyetPinter.com | FJBex.com | ikasema.org | do i know you?
   
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS