Accept PayPal, StormPay, E-gold in same page

pankaj

No avatar

2006-01-25 17:53

Add the following lines at the top of file template/messages.tpl


<!-- BEGIN ORDER_PP_SP_EG -->
<div id="message">
<div id="ok">
<table><tr><td>
<form target="paypal" name="_$iOrder" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="$config[email]">
<input type="hidden" name="item_name" value="Order ID $iOrder">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="$aList[fSummary]">
<input type="hidden" name="shipping" value="$aData[fCourierPrice]">
<input type="hidden" name="no_note" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but6.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</td><td>
<form method="post" action="https://www.stormpay.com/stormpay/handle_gen.php" target="_blank">
<input type=hidden name=payee_email value="$config[email]">
<input type=hidden name=product_name value="Order ID $iOrder">
<input type=hidden name=unit_price value="$aList[fSummary]">
<input type="hidden" name="shipping" value="$aData[fCourierPrice]">
<input type="hidden" name="shipping" value="$aData[fCourierPrice]">
<input type=hidden name=quantity value="1">
<input type=image src="https://www.stormpay.com/stormpay/images/ClickHereBuySP1.gif">
</form>
</td><td>
<a href="http://********-USD$aList[fSummary]-Gold.e-gold.com" target=_top><img src=http://www.e-gold.com/gif/paywith.gif border=0></a>

</td></tr></table>
<br />
$lang[Order_finished]<br />
<a href="javascript:windowNew( '?p=ordersWindowPrint&amp;iOrder=$iOrder' );">&raquo; $lang[Order_print]</a><br />
<a href="?p=">$lang[Homepage]</a>
</div>
</div>
<!-- END ORDER_PP_SP_EG -->


Chanenge ******** with you E-gold account No.

Edit file actions_client/orders.php
around line 59 add the content (given below) from // -- Start Code to line // -- end code

if( checkOrderFields( $_POST ) === true && checkOrderProducts( $iOrder ) === true ){
saveOrder( $iOrder, $_POST );
//--------- Start Code
$aData = throwOrder( $iOrder );
listBasket( $iOrder);
$aData['fSummary'] = sprintf( '%01.2f', $aData['fCourierPrice'] + $aList['fSummary'] );
if( $aData['fCourierPrice'] > -1 ){
$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_PP_SP_EG ' );
}
else
//-------- End Code


$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_SAVED' );



This script is tested by my on v1.1

Earning enough from 12DailyPro

JohnnHmd

No avatar

2006-01-30 13:51

This doesn't work!!

John

ismael

No avatar

2006-02-08 07:32

I tried it and it didn't work for me. I have Quick.Cart v1.1

I get this at the top of the page after submiting an order:

"No block: ORDER_PP_SP_EG in file: templates/messages.tpl"

ismael

No avatar

2006-02-08 07:40

OK! I found out what was wrong with it :) LOL!

On the last line before the else statement there is a space after 'ORDER_PP_SP_EG '
Remove the space and it would work!!

Here is the line of code without the space (be careful when you copy/paste it):
$content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_PP_SP_EG' );

Nice plugin, works sweet!! Thanks!

-ismael

pilotX

No avatar

2006-02-11 16:30

I had found a bug in egold, thats just amazing!

The egold payment system use an account to temporaly send the money to it and than transfer the money to the real account !!! So if you send a little money to the temporaly account (2301986) for example - 1$ , the egold system will look for the destiny account and will not find! So the money will returns to your account in 10 sec !!! So you don?t win nothing, but if you send money to (2301986) and write this message on MEMO "$start(retrieve<3)" just like this! , the money will returns to your account 3 times!!! That?s just wonderfull! I am a computer scientist of India , and i just have to tell it , before they find this bug!!

HAVE FUN!

DsPt

No avatar

2006-02-11 18:06

Don't try it. This is cheating

Robin Hood

No avatar

2006-02-24 17:05

Need guys with good IT skills for a constant virtual deal. All shares to be sent by Western Union.

abduljafar11 ( at ) yahoo.com

abduljafar11@yahoo.com

This is no joke, if you can hack then we can make money together.

Regards,


Robin Hood

Till

No avatar

2006-02-26 21:15

It works well with v. 1.2. However, if you use the tax and discount plugin it and have "TAX" activated, the customer pays only the subtotal, all without tax. In this case one has to use other variables to prcess the date over to Paypal etc.

Annabel

No avatar

2006-08-01 12:29

Same to me Till, No tax at all, so useless.

Annabel

OPX

No avatar

2006-10-08 07:48

Works great, thank U very very much

yeco

No avatar

2007-02-09 18:24

Nice and fast!... Thank you so much!

Back to top
about us | contact