So on my website I have paypal enabled but when the user clicks the "buy now" button I want to shoot an email to the store owner with some information before it redirects to paypal.com. I can't think of how to do this for the life of me because (I don't think) it's ever postedback to my page before it's redirected. Any ideas? It's absolute critical that this email is sent. The page is in asp.net with C#.
The paypal code is:
form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form1" runat="server">
input type="hidden" name="cmd" value="_xclick" />
input type="hidden" name="lc" value="US" />
input type="hidden" name="item_name" value="Lollipops Gift Baskets Order" />
input type="hidden" id="paypal_amount" runat="server" name="amount" value="56.00" />
input type="hidden" name="currency_code" value="USD" />
input type="hidden" name="button_subtype" value="products" />
input type="hidden" name="tax_rate" value="0.000" />
input type="hidden" id="paypal_shipping" runat="server" name="shipping" value="0.00" />
input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" id="submit1" runat="server" />
img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
/form>