<%@ Control Language="c#" AutoEventWireup="false" Codebehind="PaypalCheckoutForm.ascx.cs" Inherits="Xpdt.Commerce.PaymentProcessing.PaypalCheckoutForm" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<HTML>
	<HEAD>
		<title>CheckOutRedirect</title>
	</HEAD>
	<body>
		<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="Form1" name="Form1">
			<input type="hidden" name="cmd" value="_cart"> 
			<input type="hidden" name="business" value="<%= BusinessMail %>">
			<input type="hidden" name="custom" value="<%= CustomVar %>"> 
			<input type="hidden" name="invoice" value="<%= Invoice %>">
			<input type="hidden" name="notify_url" value="<%= NotifyUrl %>"> 
			<input type="hidden" name="upload" value="1">
			<input type="hidden" name="image_url" value="https://www.xpdreamteam.com/images/LogoforPayPalCheckout.gif">
			<asp:Repeater id="CartRepeater" runat="server">
				<ItemTemplate>
					<input type="hidden" name='<%#"item_name_"+GetIndex() %>' value='<%# DataBinder.Eval(Container.DataItem, "ModelName") %>'>
					<input type="hidden" name='<%#"item_number_"+GetIndex() %>' value='<%# DataBinder.Eval(Container.DataItem, "ModelNumber") %>'>
					<input type="hidden" name='<%#"amount_"+GetIndex() %>' value='<%# DataBinder.Eval(Container.DataItem, "UnitCost", "{0:c}") %>'>
					<input type="hidden" name='<%#"quantity_"+GetIndexInc() %>' value='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>'>
				</ItemTemplate>
			</asp:Repeater>
			<input type="image" src="http://images.paypal.com/images/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
		</form>
		<script language="javascript">
			 document.Form1.submit();
		</script>
	</body>
</HTML>
