Page 1 of 1

how to directly link to paypal but register an order

Posted: Mon Oct 27, 2008 5:01 am
by frosty
Hi, currently when the user selects paypal they are directed to view their order

/checkout/receipt.aspx?orderId=##

and then there is another paypal button to click that sends you to PayPal.

I'm trying to simplify the process so when the user clicks on paypal they are sent directly to paypal. ie i do really see why you need to have this additional click. Of course there is the express checkout option but this does not create orders in the database. The key file here is

<uc:PayPalPayNowButton ID="PayPalPayNowButton" runat="server"></uc:PayPalPayNowButton>

This files contains a button that on submit creates a page like the following
################~
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
</head>
<body onload="document.PayPal_Button.submit();">
<form name="PayPal_Button" action="https://www.sandbox.paypal.com/xclick/" method="post">
<input type="hidden" name="amount" value="250.00"><input type="hidden" name="handling"
value="0.00"><input type="hidden" name="shipping" value="50.00"><input type="hidden"
name="tax" value="0.00"><input type="hidden" name="shipping2" value="0"><input type="hidden"
name="cmd" value="_xclick"><input type="hidden" name="business" value="xx "><input
type="hidden" name="bn" value="AbleCommerce 7.0"><input type="hidden" name="item_name"
value="Order No: 52"><input type="hidden" name="quantity" value="1"><input type="hidden"
name="return" value="xxx//ProcessPayPal.ashx?OrderId=52"><input type="hidden"
name="rm" value="2"><input type="hidden" name="cancel_return" value="xxx/Members/MyOrder.aspx?OrderId=52"><input
type="hidden" name="no_shipping" value="1"><input type="hidden" name="no_note" value="1"><input
type="hidden" name="cs" value="0"><input type="hidden" name="custom" value="52"><input
type="hidden" name="currency_code" value="USD"><input type="hidden" name="handling_cart"
value="0"><input type="hidden" name="bn" value="ablecommerce"><input type="hidden"
name="mrb" value="xxx"><input type="hidden" name="pal" value="xxx"><input
type="hidden" name="notify_url" value="xxx"><input
type="hidden" name="paymentaction" value="authorization"><input type="hidden" name="upload"
value="1"></form>
</body>
</html>

Re: how to directly link to paypal but register an order

Posted: Mon Oct 27, 2008 12:49 pm
by frosty
Any thoughts on this? Where is the method that generates the form just prior to submission to PayPal.