how to directly link to paypal but register an order

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
frosty
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Jul 24, 2008 3:22 am

how to directly link to paypal but register an order

Post by frosty » Mon Oct 27, 2008 5:01 am

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>

frosty
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Jul 24, 2008 3:22 am

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

Post by frosty » Mon Oct 27, 2008 12:49 pm

Any thoughts on this? Where is the method that generates the form just prior to submission to PayPal.

Post Reply