Hybris with PayPal add-on, Windows/Linux step-by-step installation. You can skip 1-3 steps, if you have installed hybris accelerator

1) Unzip Hybris sources
2) Install ``cx`` recipe from $HYBRIS_DIR/installer

    ``` ./install.sh -r <needed-recipe> -A local_property:initialpassword.admin=nimda    ```
3) cd $HYBRIS_DIR/hybris/bin/platform
    ```echo develop | ant createConfig    ```
4) Unzip pypl-bt.zip, copy extensions from ```/extensions``` to ```$HYBRIS_DIR/hybris/bin/custom-paypal-bt```, copy properties from ```/samples/local.properties``` to your ```$HYBRIS_DIR/hybris/config/local.properties``` file.
5) Add next extensions to ```$HYBRIS_DIR/hybris/config/local-extensions.xml ```

	Core-extensions:
    ``` 
    <extension name="braintree"/>
    <extension name="braintreeacceleratorfacades"/>
    <extension name="braintreefacades"/>
    <extension name="braintreefulfilmentprocess"/>
    <extension name="braintreecustomersupportbackoffice"/>
   ```
	B2C related extensions if you use B2C accelerator.
    ```
    <extension name="braintreeaddon"/>
    <extension name="braintreewebservice"/>
   ```
	B2B related extensions if you use B2B accelerator.
    ```
    <extension name="braintreeb2baddon"/>
    <extension name="braintreeb2bwebservice"/>
    <extension name="braintreeb2bfacades"/>
    ```
	Spartacus core extensions if you use Braintree Spartacus storefront.
    ```
    <extension name="braintreespartacusdata"/>
    <extension name="spartacussampledata"/>
    <extension name="braintreeocc"/>
   ```
    B2B Spartacus related extensions.
    ```
    <extension name="braintreeb2bocc"/>
   ```
6) Install addons which were added on the fourth step. Move to ```$HYBRIS_DIR/hybris/bin/platform``` and run following command:

    - B2C. If you are using B2C accelerator and braintreeaddon was added on the previous step

    ```ant addoninstall -Daddonnames="braintreeaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"```

    - B2B. If you are using B2B accelerator and braintreeb2baddon was added on the previous step

    ```ant addoninstall -Daddonnames="braintreeb2baddon" -DaddonStorefront.yacceleratorstorefront="yb2bacceleratorstorefront"```
**Note: If you are using Spartacus storefront, you can skip this step**
           

7) Move to  ```$HYBRIS_DIR/hybris/bin/platform``` and run following command:
	
    ```ant clean all initialize```

Now Braintree addon is installed and you can start server using following command:
     ``./hybrisserver.sh`` for Linux system and ``hybrisserver.bat`` for Windows system.
