View Full Version : Can't pay affiliates.....!!
realwarrior
22nd April 2007, 03:45 PM
I try to pay my test affiliate but nothing happen when click on the e-gold logo...
http://img409.imageshack.us/img409/9109/payaffiliatevv4.jpg (http://imageshack.us)
my button format from Payout Setting:
form action='https://www.e-gold.com/sci_asp/payments.asp' method='POST'>
<input type='hidden' name='PAYEE_ACCOUNT' value='EGNUM'>
<input type='hidden' name='PAYEE_NAME' value='EGACTNAME'>
<input type='hidden' name='PAYMENT_AMOUNT' value='$Affiliate_amount'>
<input type='hidden' name='PAYMENT_UNITS' value='1'>
<input type='hidden' name='PAYMENT_METAL_ID' value='1'>
<input type='hidden' name='PAYMENT_URL' value='http://101Moneymakingebooks.com/affiliate/merchants>
<input type='hidden' name='SUGGESTED_MEMO' value='101MoneyMakingeBooks.com Affiliate Payment to $Affiliate_username'>
<input type='hidden' name='NOPAYMENT_URL' value='http://101Moneymakingebooks.com/affiliate/merchants'>
<input type='hidden' name='PAYMENT_URL_METHOD' value='http://101Moneymakingebooks.com/affiliate/merchants'>
<input type='hidden' name='BAGGAGE_FIELDS' value=''>
<input type='image' src='http://www.e-gold.com/gif/paywith.gif' border='0' name='submit' alt='Pay Affiliate Now'>
realwarrior
23rd April 2007, 01:22 AM
Ok, I figured out there was a lack of "<" in the button format.
I added and the egold button appear normal..
But when I process payment, the memo field is blank (by right it shouldn't be...)and after completed of egold payout, the page returned:
Not Found
The requested URL /affiliate/merchants><input type= was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.101moneymakingebooks.com Port 80
and I look to my address bar, the url was something strange like this:
http://101moneymakingebooks.com/affiliate/merchants%3E%3Cinput%20type=
I read also the topic on how to intergrate egold....
http://forum.qualityunit.com/viewtopic.php?t=627
What is the egold button that need to put on my site??(?) and what about the cookies???(?)
here the post I mentioned about intergration of egold...
With the help of Stefan I was able to get this implemented on our site.
1. Go to Tools -> Settings -> Payout methods
2. Under the menu Payout Methods click Add payout method
3. Once the Edit payout method window appears
a. Name => E-Gold
b. Language code => L_G_FIELDEGOLDNUM
c. Status => enabled
d. Order => "Whatever number you want this Payout method to be seen. (1-x)"
e. Button format:
<form action='https://www.e-gold.com/sci_asp/payments.asp' method='POST'>
<input type='hidden' name='PAYEE_ACCOUNT' value='EGNUM'>
<input type='hidden' name='PAYEE_NAME' value='EGACTNAME'>
<input type='hidden' name='PAYMENT_AMOUNT' value='$Affiliate_amount'>
<input type='hidden' name='PAYMENT_UNITS' value='1'>
<input type='hidden' name='PAYMENT_METAL_ID' value='1'>
<input type='hidden' name='PAYMENT_URL' value='http://YOUR_HOST.COM/DIRECTORY/merchants>
<input type='hidden' name='SUGGESTED_MEMO' value='YOUR Site Name Affiliate Payment to $Affiliate_username'>
<input type='hidden' name='NOPAYMENT_URL' value='http://YOUR_HOST.COM/DIRECTORY/merchants'>
<input type='hidden' name='PAYMENT_URL_METHOD' value='http://YOUR_HOST.COM/DIRECTORY/merchants'>
<input type='hidden' name='BAGGAGE_FIELDS' value=''>
<input type='image' src='http://www.e-gold.com/gif/paywith.gif' border='0' name='submit' alt='Pay Affiliate Now'>
f. Click Submit
4. Under the E-Gold area click Add payout field
5. Once the Add payout field window appears
a. Code => EGNUM
b. Name => E-Gold Number
c. Language code => L_G_FIELDEGOLDNUMTXT
d. Type => text
e. Status => mandatory
f. Order => 1
g. Available values => (YOU CAN LEAVE THIS BLANK)
h. Click Submit
4. Click Add payout field again.
6. Once the Add payout field window appears
a. Code => EGACTNAME
b. Name => E-Gold Number
c. Language code => L_G_FIELDEGOLDACCOUNTNAME
d. Type => text
e. Status => mandatory
f. Order => 2
g. Available values => (YOU CAN LEAVE THIS BLANK)
h. Click Submit
7. To put the E-Gold button on your site use the following code:
<form action='https://www.e-gold.com/sci_asp/payments.asp' method='POST'>
<input type='hidden' name='PAYEE_ACCOUNT' value='YOUR_EGOLD_ACCOUNT_NUMBER'>
<input type='hidden' name='PAYEE_NAME' value='YOUR_ACCOUNT_NAME'>
<input type='hidden' name='PAYMENT_AMOUNT' value='YOUR_$_AMOUNT(IE. 27)'>
<input type='hidden' name='PAYMENT_UNITS' value='1'>
<input type='hidden' name='PAYMENT_METAL_ID' value='1'>
<input type='hidden' name='PAYMENT_URL' value='http://YOUR_HOST.COM/YOUR_THANK_YOU_PAGE.php'>
<input type='hidden' name='SUGGESTED_MEMO' value='YOUR INFO HERE TO MEMO AREA'>
<input type='hidden' name='NOPAYMENT_URL_METHOD' value='LINK'>
<input type='hidden' name='PAYMENT_URL_METHOD' value='LINK'>
<input type='hidden' name='BAGGAGE_FIELDS' value='USER1'>
<script>
document.write("<input type='hidden' name='USER1' value='"+getCookie('POSTAff2Cookie')+"'>");
</script>
<input type="hidden" name="STATUS_URL" value="http://YOUR_HOST.COM/AFFILIATE_DIRECTORY/scripts/egold.php">
<input type='image' src='http://www.e-gold.com/gif/paywith.gif' border='0' name='submit' alt='Pay Now with e-gold'>
</form>
8. Finally add this function for reading cookies between <head></head> tags:
<SCRIPT>
function getCookie(name)
{
var nameequals = name + "=";
var beginpos = 0;
var beginpos2 = 0;
while (beginpos < document.cookie.length)
{
beginpos2 = beginpos + name.length + 1;
if (document.cookie.substring(beginpos, beginpos2) == nameequals)
{
var endpos = document.cookie.indexOf (";", beginpos2);
if (endpos == -1)
endpos = document.cookie.length;
return unescape(document.cookie.substring(beginpos2, endpos));
}
beginpos = document.cookie.indexOf(" ", beginpos) + 1;
if (beginpos == 0)
break;
}
return null;
}
</SCRIPT>
I'll add more as needed
drakeman
23rd April 2007, 01:25 PM
hello,
could you send me please your actual access to your merchant panel? We take a look for your problem.
realwarrior
23rd April 2007, 03:43 PM
hello,
could you send me please your actual access to your merchant panel? We take a look for your problem.
Hi drakeman,
I just figured out there is the code is missing...: </form>
After added it to the end of the form, it works!
drakeman
25th April 2007, 12:10 PM
Hi realwarrior,
thats fine. If you have any questions, feel free to contact us
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.