<commit_before># Authorize.net Quick Start

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

**You must have completed the [[Authorize.net Environment Setup]] before continuing**

1. In your `applicationContext-servlet.xml`, replace the component scan

```xml
    <context:component-scan base-package="com.mycompany.sample" />
```

with

```xml
    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>
```

2. In your core `applicationContext.xml`, replace the block of text

```xml
    <!-- Scan DemoSite Sample Payment Gateway Implementation -->
    ...
    <!-- /End DemoSite NullPaymentGateway Config -->
```

with

```xml
    <!-- Cybersource Secure Acceptance SOP -->
    <context:component-scan base-package="org.broadleafcommerce.payment.service.gateway"/>
    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>

    <!-- Add Sample Thymeleaf Processor to test Hosted Payment Gateway (e.g. PayPal Express Flow) -->
    <bean id="mySampleConfigurationServices" class="org.springframework.beans.factory.config.ListFactoryBean"><commit_msg>Changed reference of Cybersource to Authorize.net<commit_after># Authorize.net Quick Start

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

**You must have completed the [[Authorize.net Environment Setup]] before continuing**

1. In your `applicationContext-servlet.xml`, replace the component scan

```xml
    <context:component-scan base-package="com.mycompany.sample" />
```

with

```xml
    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>
```

2. In your core `applicationContext.xml`, replace the block of text

```xml
    <!-- Scan DemoSite Sample Payment Gateway Implementation -->
    ...
    <!-- /End DemoSite NullPaymentGateway Config -->
```

with

```xml
    <!-- Scan for Authorize.net -->
    <context:component-scan base-package="org.broadleafcommerce.payment.service.gateway"/>
    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>

    <!-- Add Sample Thymeleaf Processor to test Hosted Payment Gateway (e.g. PayPal Express Flow) -->
    <bean id="mySampleConfigurationServices" class="org.springframework.beans.factory.config.ListFactoryBean">
{'fraction_non_alphanumeric': 0.12192262602579132, 'fraction_numerical': 0.0015631105900742479, 'mean_word_length': 4.481798715203426, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '225939', 'n_tokens_mistral': 702, 'n_tokens_neox': 671, 'n_words': 207}