We made two modifications to the cart.jsp page to enable express checkout. First, the Express Checkout button is conditionally added to the form depending on the state of the Profile.expressCheckout property.

Conditional express checkout button incart.jsp:

<core:if value="Profile.expressCheckout">
  <dsp:input bean="ShoppingCartModifier.expressCheckout" type="submit" value="
       Express  Checkout"/>
</core:if>

We also modified cart.jsp by adding a hidden input value containing the URL for a successful express checkout:

<dsp:input bean="ShoppingCartModifier.expressCheckoutSuccessURL"
           type="hidden"
           value="full/co_confirm.jsp"/>

When express checkout is enabled, clicking the Express Checkout button creates an order using the items in the user’s shopping cart and the pre-set default shipping address, credit card, and shipping method. The user is then redirected to the final order confirmation page.

 
loading table of contents...