Page 1 of 1

Authorize.net takes to a blank page at /checkout/complete

Posted: Tue Jan 08, 2013 12:40 pm
by limebot
I have followed the getting started with Authorize.net guide and then completed the Advanced section. It appears to be working fine it show the products in my View Orders tab in the customer account but when it is processed it takes me to a blank /checkout/complete page Below is what I have added:

Checkout controller has a:
@RequestMapping(value = "/complete", method = RequestMethod.POST)
public String completeSecureCreditCardCheckout(HttpServletRequest request, HttpServletResponse response, Model model,
@ModelAttribute("orderInfoForm") OrderInfoForm orderInfoForm,
@ModelAttribute("shippingInfoForm") ShippingInfoForm shippingForm,
@ModelAttribute("billingInfoForm") BillingInfoForm billingForm,
BindingResult result) throws CheckoutException, PricingException, ServiceException {
prepopulateCheckoutForms(CartState.getCart(), null, shippingForm, billingForm);
return super.completeSecureCreditCardCheckout(request, response, model, billingForm, result);

applicationContext-servlet has:

<bean class="org.broadleafcommerce.common.web.BroadleafThymeleafViewResolver">
<property name="templateEngine" ref="blWebTemplateEngine" />
<property name="order" value="1" />
<property name="cache" value="false" />
<property name="fullPageLayout" value="layout/fullPageLayout" />
<property name="characterEncoding" value="UTF-8" />
<property name="layoutMap">
<map>
<entry key="account/" value="layout/accountLayout" />
<entry key="catalog/" value="NONE" />
<entry key="cstore/" value="catalog/cstore_template" />
<entry key="checkout/" value="layout/checkoutLayout" />
<entry key="checkout/confirmation" value="layout/fullPageNoNavLayout" />
<entry key="checkout/complete" value="layout/checkoutLayoutComplete.html" />
<entry key="layout/" value="NONE" />
</map>
</property>
</bean>

I have created the pages:
layout/checkoutLayoutComplete.html
Also checkout/complete.html

What do you think I am missing?

Re: Authorize.net takes to a blank page at /checkout/complete

Posted: Tue Jan 08, 2013 11:56 pm
by phillipuniverse
This is actually unused for the Authorize.net module. You will need to set a property for authorizenet.confirm.url to something like yourdomain.com/confirmation. This is mapped in the OrderConfirmationController.

Re: Authorize.net takes to a blank page at /checkout/complete

Posted: Wed Jan 09, 2013 9:05 am
by limebot
I am curious about the documentation and steps needed to integrate Authorize.net into the Demo application. I see the blc-authorizenet module on Gethub but I don't see that download mentioned in the documentation. I have followed other postings in this forum and found a few steps that were not in the online documentation that work. Is there a consolidated explanation available?