Hi,

I'm about to start my paypal project again after been lapsed for so many countless month. And I'm still very confused and helpless in integrating with Paypal............

Hence, I hope to ask anybody out there who could kindly advise the flow of integrating PayPal using their ExpressCheckOut.

Basically, I'd like to go how to go from this point(A) where my buyers already selected their goods and will bring them to this page to show their total amount, the qty and description of goods, their name, address, telephone and email.

Is this the onset of SetExpressCheckOut servlet and thereafter follows by GetExpressCheckOut and then DoExpressCheckOut Servlet?

In between these servlets, do I have to create another forms?

And in my point(A), do I need to alter my form to aligned with Paypal's requirements:

Here's my Shoppingcart.jsp code:

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <p><strong>Shopping Cart</strong></p>
        <p><a href="List.jsp">List</a> </p>
        <table width="75%" border="1">
 
                <td><strong>Description</strong></td>
                <td><strong>Quantity</strong></td>
                <td><strong>UnitPrice</strong></td>
                <td><strong>Total</strong></td>
            </tr>
            <jsp:useBean id="cart" scope="session" type="shoppingcart.beans.CartBean" />
            <c:if test="${cart.lineItemCount==0}">
                <tr>
                    <td colspan="4">- Cart is currently empty -<br/>
                </tr>
            </c:if>
            <c:forEach var="cartItem" items="${cart.cartItems}" varStatus="counter">
                <form name="item" method="POST" action="servlet/CartController">
                    <tr>
                        <td><b><c:out value="${cartItem.partNumber}"/></b><br/>
                            <c:out value="${cartItem.modelDescription}"/></td>
                        <td><input type='hidden' name='itemIndex' value='<c:out value="${counter.count}"/>'>
                            <input type='text'   name="quantity" value='<c:out value="${cartItem.quantity}"/>' size='2'>
                            <input type="submit" name="action" value="Update">
                            <input type="submit" name="action" value="Delete"></td>
                        <td>$<c:out value="${cartItem.unitCost}"/></td>
                        <td>$<input type="hidden" name="amount" c:out value="${cartItem.totalCost}"/></td>
                    </tr>
                </form>
            </c:forEach>
            <tr>
                <td colspan="2"> </td>
                <td> </td>
                <td>Subtotal: $<c:out value="${cart.orderTotal}"/></td>
 
            </tr>
 
        </table>
        <form action="servlet/SetExpressCheckoutService.java" method="POST">
            If you are happy with your purchase, then please fill up the below form before checkout now:-
            <TABLE id="Table1">
 
                <tr>
                    <td align=right><br>
		Buyer's Email:</td>
                    <td align=left><br>
                        <input type="text" size="30" name="buyersemail" value=""><b>(Required)</b></td>
                </tr>
 
            </TABLE>
            <BR>
            <TABLE id="Table2">
                <TH>Ship To:</TH>
                <tr>
                    <td  class="field">Name:</td>
                    <td><input type="text" size="30" maxlength="32" name="NAME"
                               value="" /></td>
                    <td colspan="20"></td>
                </tr>
                <tr>
                    <td class="field">Street:</td>
                    <td><input type="text" size="30" maxlength="32"
                               name="SHIPTOSTREET" value="" /></td>
                    <td colspan="20"></td>
                </tr>
                <tr>
                    <td class="field">City:</td>
                    <td><input type="text" size="30" maxlength="32" name="SHIPTOCITY"
                               value="" /></td>
                    <td colspan="20"></td>
                </tr>
                <tr>
                    <td class="field">State:</td>
                    <td><input type="text" size="30" maxlength="32"
                               name="SHIPTOSTATE" value="" /></td>
                    <td colspan="20"></td>
                </tr>
                <tr>
                    <td class="field">Country:</td>
                    <td><input type="text" size="30" maxlength="32"
                               name="SHIPTOCOUNTRYNAME" value="" /></td>
                    <td colspan="20"></td>
                </tr>
                <tr>
                    <td class="field">Zip Code:</td>
                    <td><input type="text" size="30" maxlength="32" name="SHIPTOZIP"
                               value="" /></td>
                    <td colspan="20"></td>
                </tr>
                <TR>
                    <TD><input type="image" name="submit"
                               src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" /> <input
                               type="hidden" name=paymentType
                               value=<%=request.getParameter("paymentType")%></TD>
                    <TD><BR>
                        <BR>
		Save time. Pay securely without sharing your financial information.</TD>
                </TR>
            </TABLE>
        </form>
    <br>
    <a id="CallsLink" class="home" href="Calls.html">Home</a>
</body>
</HTML>

Please don't ask me to post on Paypal or X forum cos they don't answer......

Thanks.