From PhpCOIN Documentation

Jump to: navigation, search

e-gold is a similar solution to PayPal, but backed by real gold. Using e-gold as a payment method is a simple process:

  1. Goto http://www.e-gold.com and set yourself up with an account
  2. Log into phpCOIN on your website as an admin
  3. Add the vendor
  4. Add paylinks

Admin -> Vendors

If e-gold exists in the list of available vendors, you can simply edit the existing record. If it does not exist, then click [Add New] to add e-gold as a payment method that you will accept. The info should look like the following:

Vendor ID:  	(will be auto-completed by phpCOIN)
Status:  	On (Off to disable this payment method)
Vendor Name:  	e-gold (for the drop-down lists)
Buy Return Param Name:  	egold
Buy Return Param Value:  	1
URL / Website:  	http://www.e-gold-com
Use IPN:  	No

Admin -> PayLinks

Select the PayLink you want to edit, or click [Create New] to create a new one. Paste the following code into the order link, changing the parameters shown in bold:

Vendor Product Id:  	(Auto-created by phpCOIN)
Vendor ID:  	(From the drop-down, choose "e-gold")
Product ID:  	(From the drop-down, choose the product that this
                paylink applies to)
Description:  	e-gold Product x (for listing)
Order Link:  	This is for the "paylink" html provided by
               e-gold, for example:
 <form method="post"
action="https://www.e-gold.com/sci_asp/payments.asp" method="post">
<input type="hidden" name="PAYEE_ACCOUNT" value="YOUR EGOLD NUMBER">
<input type="hidden" name="PAYEE_NAME" value="YOUR COMPANY NAME">
<input type="hidden" name="PAYMENT_AMOUNT" value="<total_amt>">
<input type="hidden" name="PAYMENT_UNITS" value="1">
<input type="hidden" name="PAYMENT_METAL_ID" value="1">
<input type="hidden" name="PAYMENT_ID" value="<invoice_id>">
<input type="hidden" name="STATUS_URL" value="mailto:YOUR EMAIL ADDRESS">
<input type="hidden" name="PAYMENT_URL" value="<return_link_buy>">
<input type="hidden" name="PAYMENT_URL_METHOD" value="LINK">
<input type="hidden" name="NOPAYMENT_URL" value="<return_link_cancel>">
<input type="hidden" name="NOPAYMENT_URL_METHOD" value="LINK">
<input type="hidden" name="BAGGAGE_FIELDS" value="">
<input type="hidden" name="SUGGESTED_MEMO" value="<prod_desc>">
<input type="image" src="http://www.e-gold.com/gif/paywith.gif">

In the above link, the <> tells phpCOIN that it should replace the tag name with the actual value at run-time. For example, leaving <return_link_buy> means that phpCOIN will enter the actual return URL when it displays an order paylink. It also means that you could move your site to another URL entirely but would not need to adjust your paylinks.

Lather, Rinse, Repeat

Repeat the above steps as many times as necessary, so that you end up with one PayLink for each product or service that will allow e-gold as a payment method.

Personal tools

Inscrita el Registro Mercantil de Mallorca Tomo 2140, Hoja No. PM-51034, Folio 135
This website owned and operated by: Technology Services RPVW S.L. CIF# B57345084
Avda Constitucion 48 Bajos Alaro 07340 Baleares SPAIN
Tel:+34 971518362    Fax: +34 971518368    eMail: support@phpcoin.com