Documentation Home Quick Start

Broadleaf Commerce offers an out-of-the-box solution that requires little configuration and is easily set up. For a more customized solution, please see [[ Advance Configuration]].

You must have completed the Environment Setup before continuing

  1. In your applicationContext-servlet.xml, add the component scan
    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>
  1. In your core applicationContext.xml, replace the block of text
    <!-- Scan DemoSite Sample Payment Gateway Implementation -->
    <!-- /End DemoSite NullPaymentGateway Config -->


    <!-- Scan for -->
    <context:component-scan base-package="org.broadleafcommerce.payment.service.gateway"/>
    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>
    <bean class="org.broadleafcommerce.vendor.authorizenet.service.payment.AuthorizeNetGatewayType"/>

    <!-- Add Sample Thymeleaf Processor to test Hosted Payment Gateway (e.g. PayPal Express Flow) -->
    <bean id="mySampleConfigurationServices" class="org.springframework.beans.factory.config.ListFactoryBean">
        <property name="sourceList">
               <ref bean="blAuthorizeNetConfigurationService"/>
    <bean class="org.broadleafcommerce.common.extensibility.context.merge.LateStageMergeBeanPostProcessor">
        <property name="collectionRef" value="mySampleConfigurationServices"/>
        <property name="targetRef" value="blPaymentGatewayConfigurationServices"/>
  1. Exclude the authorizenet URL from the CSRF token filter in your applicationContext-security.xml
    <bean id="blCsrfFilter" class="" >
        <property name="excludedRequestPatterns">


At this point, all the configuration should be complete and you are now ready to test your integration with Add something to your cart and proceed with checkout.

Note: When checking out, make sure that your credit card expiration date is in the form of MM-YYYY.

Note: To view transactions, go to the Sandbox and click on "Search" at the top. You can view both settled and unsettled transactions this way.