All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commerce.broadleaf-authorizenet.2.0.2-GA.source-code.bl-authorizenet-applicationContext.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-3.1.xsd">


    <context:component-scan base-package="org.broadleafcommerce.common.web"/>
    <context:component-scan base-package="org.broadleafcommerce.core.web"/>
    <context:component-scan base-package="org.broadleafcommerce.profile.web"/>
    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>

    <!-- In order to use the pre-configured properties files, you should override this bean yourself in your own applicationContext.xml -->
    <!--
    <bean id="blConfiguration" class="org.broadleafcommerce.common.config.RuntimeEnvironmentPropertiesConfigurer">
        <property name="propertyLocations">
            <set>
                <value>classpath:config/bc/authorizenet/</value>
            </set>
        </property>
    </bean>
    -->

    <!-- Override the default Broadleaf Credit Card Service with Authorize.net -->
    <bean id="blCreditCardService" class="org.broadleafcommerce.core.payment.service.PaymentServiceImpl">
        <property name="paymentModule" ref="blAuthorizeNetModule"/>
    </bean>

    <bean id="blAuthorizeNetModule" class="org.broadleafcommerce.payment.service.module.AuthorizeNetPaymentModule">
        <property name="authorizeNetPaymentService" ref="blAuthorizeNetVendorOrientedPaymentService"/>
        <property name="stateService" ref="blStateService"/>
        <property name="countryService" ref="blCountryService"/>
        <property name="customerService" ref="blCustomerService"/>
    </bean>

    <bean id="blAuthorizeNetVendorOrientedPaymentService" class="org.broadleafcommerce.vendor.authorizenet.service.payment.AuthorizeNetPaymentServiceImpl">
        <property name="failureReportingThreshold" value="1"/>
        <property name="gatewayRequest">
            <bean class="org.broadleafcommerce.vendor.authorizenet.service.payment.AuthorizeNetGatewayRequestImpl">
                <property name="apiLoginId" value="${authorizenet.api.login.id}"/>
                <property name="transactionKey" value="${authorizenet.transaction.key}"/>
                <property name="relayResponseUrl" value="${authorizenet.relay.response.url}"/>
                <property name="merchantMD5Key" value="${authorizenet.merchant.md5.key}"/>
                <property name="merchantTransactionVersion" value="${authorizenet.merchant.transaction.version}" />
                <property name="xTestRequest" value="${authorizenet.x_test_request}" />
                <property name="serverUrl" value="${authorizenet.server.url}" />
            </bean>
        </property>
    </bean>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy