Repository navigation
1. Getting started
Michel edited this page Feb 4, 2026
·
1 revision
If you are a merchant and want to install the app to your shop, you can find it here.
- First setup devenv
- Clone the repository
git clone https://github.com/shopware/braintree-app
- Install dependencies
composer install npm install
- Start devenv
devenv up
- Setup database, manifest and hardcoded urls
composer setup
- Symlink correct directory into
<shopware-root>/custom/appsln -s "<braintree-root>/apps/<shopware-major>" "<shopware-root/custom/apps/SwagBraintreeApp"
- Install and activate the app
- Rebuild shopware's storefront js
-
composer setup: (Re-)create database, generatemanifest.xmland replace hardcoded URLs -
composer setup:manifest: Generate themanifest.xmlfor prod or dev depending on yourAPP_ENV -
composer setup:url: Replace hardcoded URLs with forAPP_URLin:Resources/app/storefront/src/checkout/swag-braintree.hosted-fields.js
-
composer setup:test: (Re-)create test database -
npm run dev: Build administration for development -
npm run build: Build administration for production -
npm run watch: Start administration hot reloading. Note that the admin needs to be refreshed once after starting this.
-
composer ecs-fix: Lint PHP files withphp-cs-fixer -
composer phpstan: Statically analyze PHP files -
composer phpunit: Run PHPUnit tests -
composer infection: Run infection for mutation testing -
npm run eslint-fix: Lint JS/TS files -
npm run tsc: Type check JS/TS files