Payment methods
Payment methods can easily be installed via json file. For each payment method you need to create a json file in the Resources/payment_methods/ directory of your plugin or AdditionalBundle.
Payment methods will automatically be installed and updated.
Resources/payment_methods/my_payment_method.json
The fields position, active, afterOrderEnabled, media, name and description will only be installed - not updated. So the user can edit them in the Shopware administration.
The media field is optional and must contain the file name of the media file. The file will automatically be installed and must be found in Resources/payment_methods/ directory.
Last updated