<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaymentDemo.aspx.cs" Inherits="PaymentProcessor.PaymentDemo" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

    <title>Authorize.Net Payment Processor Example</title>

    <style type="text/css">

        .style1

        {

            width: 188px;

        }

        .style2

        {

            width: 170px;

        }

    </style>

</head>

<body bgcolor="#ffffcc">

   

    <h3>This example demonstrates processing a credit card payment through a Payment Processor Gateway, Authorize.Net.</h3>

 

    <form id="form1" runat="server">

       

        <table>

        <tr>

            <td><img src="images/pizza.jpg" style="height: 165px; width: 184px" /></td>

            <td class="style1">

                <asp:Label ID="Label10" runat="server" Text="Pascucci's Pizza Palace"

                    BackColor="#BC250B" Font-Bold="True" Font-Size="XX-Large" ForeColor="White"

                    Height="100%" Width="358px"></asp:Label></td>

        </tr>

        <tr>

            <td></td>

            <td> <asp:Label ID="lblDisplay" runat="server" Font-Bold="True"></asp:Label></td>

        </tr>

        <tr>

            <td></td>

            <td class="style1">

                <table>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label4" runat="server" Text="First name:"></asp:Label></td>

                        <td> <asp:TextBox ID="txtFName" runat="server" Width="189px"></asp:TextBox></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label9" runat="server" Text="Last name:" Width="189px"></asp:Label></td>

                        <td> <asp:TextBox ID="txtLName" runat="server" Width="189px"></asp:TextBox></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label5" runat="server" Text="Address:"></asp:Label> </td>

                        <td> <asp:TextBox ID="txtAddress" runat="server" Width="189px"></asp:TextBox></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label6" runat="server" Text="City:"></asp:Label></td>

                        <td> <asp:TextBox ID="txtCity" runat="server" Width="189px"></asp:TextBox></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label7" runat="server" Text="State:"></asp:Label></td>

                        <td> <asp:DropDownList ID="ddlState" runat="server">

                                   <asp:ListItem Value="AL">Alabama</asp:ListItem>

                                   <asp:ListItem Value="AK">Alaska</asp:ListItem>

                                   <asp:ListItem Value="AZ">Arizona</asp:ListItem>

                                   <asp:ListItem Value="AR">Arkansas</asp:ListItem>

                                   <asp:ListItem Value="CA">California</asp:ListItem>

                                   <asp:ListItem Value="CO">Colorado</asp:ListItem>

                                   <asp:ListItem Value="CT">Connecticut</asp:ListItem>

                                   <asp:ListItem Value="DE">Delaware</asp:ListItem>

                                   <asp:ListItem Value="FL">Florida</asp:ListItem>

                                   <asp:ListItem Value="GA">Georgia</asp:ListItem>

                                   <asp:ListItem Value="HI">Hawaii</asp:ListItem>

                                   <asp:ListItem Value="ID">Idaho</asp:ListItem>

                                   <asp:ListItem Value="IL">Illinois</asp:ListItem>

                                   <asp:ListItem Value="IN">Indiana</asp:ListItem>

                                   <asp:ListItem Value="IA">Iowa</asp:ListItem>

                                   <asp:ListItem Value="KS">Kansas</asp:ListItem>

                                   <asp:ListItem Value="KY">Kentucky</asp:ListItem>

                                   <asp:ListItem Value="LA">Louisiana</asp:ListItem>

                                   <asp:ListItem Value="ME">Maine</asp:ListItem>

                                   <asp:ListItem Value="MD">Maryland</asp:ListItem>

                                   <asp:ListItem Value="MA">Massachusetts</asp:ListItem>

                                   <asp:ListItem Value="MI">Michigan</asp:ListItem>

                                   <asp:ListItem Value="MN">Minnesota</asp:ListItem>

                                   <asp:ListItem Value="MS">Mississippi</asp:ListItem>

                                   <asp:ListItem Value="MO">Missouri</asp:ListItem>

                                   <asp:ListItem Value="MT">Montana</asp:ListItem>

                                   <asp:ListItem Value="NE">Nebraska</asp:ListItem>

                                   <asp:ListItem Value="NV">Nevada</asp:ListItem>

                                   <asp:ListItem Value="NH">New Hampshire</asp:ListItem>

                                   <asp:ListItem Value="NJ">New Jersey</asp:ListItem>

                                   <asp:ListItem Value="NM">New Mexico</asp:ListItem>

                                   <asp:ListItem Value="NY">New York</asp:ListItem>

                                   <asp:ListItem Value="NC">North Carolina</asp:ListItem>

                                   <asp:ListItem Value="ND">North Dakota</asp:ListItem>

                                   <asp:ListItem Value="OH">Ohio</asp:ListItem>

                                   <asp:ListItem Value="OK">Oklahoma</asp:ListItem>

                                   <asp:ListItem Value="OR">Oregon</asp:ListItem>

                                   <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>

                                   <asp:ListItem Value="RI">Rhode Island</asp:ListItem>

                                   <asp:ListItem Value="SC">South Carolina</asp:ListItem>

                                   <asp:ListItem Value="SD">South Dakota</asp:ListItem>

                                   <asp:ListItem Value="TN">Tennessee</asp:ListItem>

                                   <asp:ListItem Value="TX">Texas</asp:ListItem>

                                   <asp:ListItem Value="UT">Utah</asp:ListItem>

                                   <asp:ListItem Value="VT">Vermont</asp:ListItem>

                                   <asp:ListItem Value="VA">Virginia</asp:ListItem>

                                   <asp:ListItem Value="WA">Washington</asp:ListItem>

                                   <asp:ListItem Value="WV">West Virginia</asp:ListItem>

                                   <asp:ListItem Value="WI">Wisconsin</asp:ListItem>

                                   <asp:ListItem Value="WY">Wyoming</asp:ListItem>

                               </asp:DropDownList></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label8" runat="server" Text="Zip:"></asp:Label></td>

                        <td> <asp:TextBox ID="txtZipcode" runat="server" Width="75px"></asp:TextBox></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label3" runat="server" Text="Card Type:"></asp:Label></td>

                        <td> <asp:DropDownList ID="ddlCardType" runat="server">

                                   <asp:ListItem>American Express</asp:ListItem>

                                   <asp:ListItem>Discover</asp:ListItem>

                                   <asp:ListItem>MasterCard</asp:ListItem>

                                   <asp:ListItem>Visa</asp:ListItem>

                             </asp:DropDownList></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label1" runat="server" Text="Card #:"></asp:Label></td>

                        <td> <asp:TextBox ID="txtCreditCardNumber" runat="server" Width="189px"></asp:TextBox></td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Label ID="Label2" runat="server" Text="Exp Date:"></asp:Label></td>

                        <td> <asp:DropDownList ID="ddlMonth" runat="server">

                                   <asp:ListItem Value="01">1</asp:ListItem>

                                   <asp:ListItem Value="02">2</asp:ListItem>

                                   <asp:ListItem Value="03">3</asp:ListItem>

                                   <asp:ListItem Value="04">4</asp:ListItem>

                                   <asp:ListItem Value="05">5</asp:ListItem>

                                   <asp:ListItem Value="06">6</asp:ListItem>

                                   <asp:ListItem Value="07">7</asp:ListItem>

                                   <asp:ListItem Value="08">8</asp:ListItem>

                                   <asp:ListItem Value="09">9</asp:ListItem>

                                   <asp:ListItem>10</asp:ListItem>

                                   <asp:ListItem>11</asp:ListItem>

                                   <asp:ListItem>12</asp:ListItem>

                             </asp:DropDownList>

                            

                             <asp:DropDownList ID="ddlYear" runat="server">

                                   <asp:ListItem Value="13">2013</asp:ListItem>

                                   <asp:ListItem Value="14">2014</asp:ListItem>

                                   <asp:ListItem Value="15">2015</asp:ListItem>

                                   <asp:ListItem Value="16">2016</asp:ListItem>

                                   <asp:ListItem Value="17">2017</asp:ListItem>

                                   <asp:ListItem Value="18">2018</asp:ListItem>

                                   <asp:ListItem Value="20">2020</asp:ListItem>

                            </asp:DropDownList> </td>

                    </tr>

                    <tr>

                        <td class="style2"> <asp:Button ID="btnProcessPurchase" runat="server" Text="Complete Purchase" OnClick="btnProcessPurchase_Click" /> </td>

                        <td> &nbsp;</td>

                    </tr>

                </table>

             </td>

        </tr>

        <tr>

            <td></td>

            <td> <asp:Label ID="lblTransactionResults" runat="server" Font-Bold="True"></asp:Label></td>

        </tr>

        </table>    

      

    </form>

</body>

</html>