Category : Programming

Fix – How to have PayPal Order shown in Admin side.




When a costumer makes a PAYPAL payment there is no order logged in the admin area of oscommerce.

Step 1: open paypal.php in your /includes/modules/payment/
Step 2: Add

tep_draw_hidden_field(”rm”,2) .

Just before
tep_draw_hidden_field(’cancel_return’, tep_href_link(FILENAME_CHECKOUT_PAYMENT, ”, ‘SSL’));

around line 96

Order will now show in admin side.


More Complex integrations of WorldPay within an HTML Page.





http://www.worldpay.com/support/content.php?page=technical&sub=junior&subsub=examples#basic

Simple Integration of Worldpay Button within an HTML Page.




<!– The first line of code creates a form, which has the POST method and its action is to send the form to WorldPay.–>

<form action="https://select.worldpay.com/wcc/purchase" method="post"><!– Place your WorldPay Installation ID inside the quotes after value= –>
<input name="instId" type="hidden" value="Your installation ID" />

<!– Create a reference identifier for the item purchased inside the quotes after value= –>
<input name="cartId" type="hidden" value="Your ID for the product" />

<!– Place the cost of the item inside the quotes after value= –>
<input name="amount" type="hidden" value="The cost of the product " />

<!– Place the code for the purchase currency inside the quotes after value= –>
<input name="currency" type="hidden" value="currency code e.g. GBP, USD" />

<!– This line creates the WorlPay button. You can name it as you wish. –>
<input type="submit" value=" Buy This " />

</form>


Javascript Code for scrolling text in Page Title!




<head>
<script language="javascript">
var msg = " bla bla bla bla ";
var pos = 0;
var spacer = " … ";
var time_length = 100;
function ScrollTitle()
{
document.title = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos=0;
window.setTimeout("ScrollTitle()",time_length);
}
ScrollTitle();
</script>

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>