redirect to paypal

chaudhary

No avatar

2006-11-19 15:45

i am using 1.3 its working fine, problem is that, after filling the information to Order Delivery Form, with submit button i want to transfer all the filled information to PAYPAL shopping cart
i dont want PAYPAL image button?????
--------------------------------------------------------------
here is code for my orders_payment.tpl
---------------------------------------------------------------

<table class='operation_table' cellspacing='0' align='center'>
<td class='ok'>
<br /><br /><br />
$lang[Order_finished]
<br /><br />
<a href='javascript:windowNew( "?p=ordersWindowPrint&amp;iOrder=$iOrder" );'><b>$lang[Order_print]</b></a>
<br /><br />
<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="OrderID $iOrder">
<input type="hidden" name="item_number" value="$iOrder">
<input type="hidden" name="amount" value="$fTotal">
<input type="hidden" name="shipping" value="$fCourier">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif" border="0" name="submit" alt="Paypal Payment Solutions - Secure and Reliable!">
</form>
<br /><br />
<a href=''>$lang[Homepage]</a>
<br /><br />
</td>
</table>

chaudhary

No avatar

2006-11-20 06:45

i donot want that page of paypal image, on submit button of Order Delivery form it must go directly to PayPal cart not to that paypal button page.

Claps

Avatar: Claps

2006-11-20 10:31

chaudhary - as I pointed you before you should add to orders_payment.tpl to onload event a piece of java script code who submit the paypal form something like:

<script type='text/javascript'>
<!--
window.onload = function( ){
<paypal form>.submit();
}
//-->
</script>

chaudhary

No avatar

2006-11-20 13:58

i added the Script but no any change,
-------------------------------------------------------
stil it showing the PayPal Button with (PAYPAL Click here to Pay) image.
-----------------------------------------------------------------------------
i donot want this i want to skip this page and go rirectly to paypal cart, after clicking on send button on ODER DELIVERY ADDRESS FORM
--------------------------------------------------------------------------------

<table class='operation_table' cellspacing='0' align='center'>
<td class='ok'>
<br /><br /><br />
$lang[Order_finished]
<br /><br />

<script type='text/javascript'>
<!--
window.onload = function( ){
<paypal form>.submit();
}
//-->
</script>



<a href='javascript:windowNew( "?p=ordersWindowPrint&amp;iOrder=$iOrder" );'><b>$lang[Order_print]</b></a>
<br /><br />
<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="OrderID $iOrder">
<input type="hidden" name="item_number" value="$iOrder">
<input type="hidden" name="amount" value="$fTotal">
<input type="hidden" name="shipping" value="$fCourier">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif" border="0" name="submit" alt="Paypal Payment Solutions - Secure and Reliable!">
</form>
<br /><br />
<a href=''>$lang[Homepage]</a>
<br /><br />
</td>
</table>

Claps

Avatar: Claps

2006-11-20 14:13

chaudhary - the code provided was not a solution but a pointing out to solution. Ok, try this:
- change
<form target="paypal" name="_$iOrder" action="https://www.paypal.com/cgi-bin/webscr"; method="post">

to
<form target="paypal" name="PayPalForm" action="https://www.paypal.com/cgi-bin/webscr"; method="post">

- the script shoul look like
<script type='text/javascript'>
<!--
window.onload = function( ){
document.PayPalForm.submit();
}
//-->
</script>

Be aware, it's not tested.

turnings

No avatar

2006-11-29 02:32

will this work for qc 2.0 as well?

Fine miniature turnings from Maine

jans

Avatar: jans

2010-01-05 14:59

I had integrate paypal its works fine but now the payment is repayt tom the client. Wat is wrong???

Back to top
about us | contact