Download the PHP package shopgate/webcheckout-shopware6 without Composer

On this page you can find all versions of the php package shopgate/webcheckout-shopware6. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webcheckout-shopware6

Shopgate Shopware6 Webcheckout

Production Checklist

Install

Packagist install (recommended)

If this plugin is available on packagist.org to install simply add the composer package to the shopware's root composer:

Afterward just increment the plugin version inside root/composer.json, and run composer update to get the latest version.

Folder install

It can be installed manually by copying the plugin folder to custom/plugins directory. Like so custom/plugins/SgateWebcheckoutSW6. Then you can install & enable like any other plugin. For this install method, please make sure that there is a vendor directory inside the plugin folder as we have composer dependencies. You could do it yourself by running:

Composer symlink (development)

Place the plugin in the custom/plugins folder. You can now link it to composer by running this command in the root directory:

Enable & Activate

Install and activate the module via command line:

You may install and activate via the Shopware administration panel instead, if you prefer.

JS Compilation

For Shopware 6.5+ after installing & enabling the plugin you will need to re-compile JS. If you have a GitHub installation, this should suffice:

For regular installations via Symfony2 Flex, zip or shopware-installer.phar.php:

CSS Compilation

After every time you configure CSS in the Admin > Extensions > Shopgate Webcheckout Config > Custom CSS you will need to recompile your theme (currently only via command line):

Signature Secret

The App will be redirecting the customer to the checkout page or their account pages. In order to keep the login information secure we will need to encrypt the calls the App makes. Therefore, we need a secure password of sorts to encrypt this login data. Shopware 6 has a native security key that it uses for such cases, it's called an APP_SECRET.

Firstly, you can check this value inside [root]/.env file. In development mode, it could be set to APP_SECRET: 1. Which will not work as that's a lousy secret, and is meant to be changed.

If you do not see it there or want Shopware 6 to manage this data instead of leaving in a file. Then you can do the following to check the secret value:

If no value is set, you can set a secure secret for your store by running this command in the console:

Make sure you adhere to these minimum requirements when creating the secret key:

Configurations

Development

Cookies

You can partially mimic a customer viewing our App by enabling a cookie in the browser sgWebView. This is useful if you want to add CSS classes, and see how they show up without needing the App.

Open browser console and paste:

CSS

If you need to work with CSS quicker, you can enable SW6's storefront-watch & update our CSS file src/Resources/app/storefront/src/scss/base.scss

Example CSS handles

These are just examples, look at the body classes to see what page has what handles

Special:

Session extending

If you are creating a custom extension. A header shopgate-check: 1 needs to be provided with the regular SW6 Storefront API calls to extend the current customer session (in case it expired). This will make sure they don't get logged out too often.


All versions of webcheckout-shopware6 with dependencies

PHP Build Version
Package Version
Requires shopware/core Version >=6.5.2 <6.6.0
rbdwllr/reallysimplejwt Version ^5.0.0
jakeasmith/http_build_url Version ^1.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shopgate/webcheckout-shopware6 contains the following files

Loading the files please wait ....