wallee Shopware 5 Documentation

Documentation

1Prerequisites

If you don’t already have one, create a wallee account.

2Installation

  1. Install the plugin directly from the Shopware plugin store.

    Note
    You also have the possibility to install the plugin using composer. See FAQ.
  2. Log in to the backend of your Shopware store.

  3. Navigate to Configuration → Plugin Manager and to Management → Installed. Click on the Install button of the plugin to install it.

    plugin installation
  4. Activate the wallee Payment plugin from the Plugin Manager.

  5. Reload the page.

3Configuration

  1. Navigate to Configuration → Plugin Manager and to Management → Installed in your Shopware backend, click on the Edit button of the plugin and enter the wallee Space ID, User ID and Authentication Key that you can create an application user.

    plugin configuration

    If your store is configured for multishop, you may use different spaces for each store to configure different behaviours.

  2. Optionally disable downloading invoice and packing slip. These settings allow customers to download the documents from their order overview in the Shopware frontend.

    Note
    Payment methods will only be available in your store once you assign them to shipping method(s). See Payment method configuration
  3. After saving the configuration and clicking on the Synchronize button, the payment methods are created in the Shopware store and the necessary webhooks are set up.

The main configuration is finished now. You should see the payment methods in your checkout. To view the payment method configuration in the backend of Shopware go to Configuration → Payment Methods.

4Payment method configuration

4.1Setup

The wallee payment method configurations are synchronized automatically into the Shopware store. There are just a few payment method settings in the Shopware store in Configuration → Payment methods.

payment method configuration

4.2Customization

If you want to change the payment method description, title, logo, etc you need to do this in the payment method configuration. Changes will be synchronized automatically.

5State graph

The Payment Process of wallee is completely standardized for every payment method you can process. This gives you the ability to simply add a payment method or processor without changes inside of your Shopware configuration. An overview about the states and the payment processes of wallee can be found in the Payment Documentation.

In the following section we provide you an overview about how the wallee states are mapped into the Shopware State graph for orders and payment states.

5.1State mapping of Shopware orders

Below you find a diagram that shows the state machine of Shopware for orders including additional information for the state transitions.

state graph order
  1. If the transaction is authorized in wallee, the Shopware order is marked as Clarification required. This can be changed in the plugin configuration. It’s also possible to define different statuses for authorized and completed transactions.

  2. If the transaction fails during the authorization process, the Shopware order is either marked as Cancelled/rejected or removed from the database, depending on the configuration.

  3. Whether an order should be removed from the database or marked as Cancelled/rejected if the corresponding transaction fails can be configured in the plugin configuration. The latter is the default behaviour.

  4. If the transaction in wallee is marked as fulfill, the Shopware order is marked as Ready for delivery, indicating that it can now be fulfilled. Once the shipment has been created, we recommend to change the order’s status.

  5. If the transaction’s authorization is voided or the risk assessments indicate that the order should not be fulfilled, the order is marked as Cancelled/rejected.

5.1.1General remarks regarding order statuses

We recommend that you only change the order status to indicate that shipping has taken place. If you change it before the transaction has reached a final state in wallee, the plugin may changed the order status again. If you want different order statuses to be set, you can change the behaviour in the plugin configuration.

5.2State mapping of Shopware payment status

Below you find a diagram that shows the state machine of Shopware for payment status including additional information for the state transitions.

state graph payment state
  1. If the transaction in wallee is authorized, the payment status of the Shopware order is set to Reserved.

  2. If the transaction fails during the authorization process, the payment status of the Shopware order is set to The process has been canceled.

  3. If the transaction in wallee is completed, the payment status of the Shopware order is set to Completely invoiced. At this point, the transfer of the amount has been initiated and the transaction amount can no longer be changed. However, the order has not yet been fulfilled and the delivery should not be started.

  4. If the transaction’s authorization is voided, the payment status of the Shopware order is set to The process has been canceled.

  5. Once the invoice is paid, the payment status of the Shopware order is set to Completely paid. This also applies if the invoice is not traceable due to external administration.

  6. If the invoice is derecognized and the payment can no longer be expected, the payment status of the Shopware order is set to The process has been canceled.

5.2.1General remarks regarding order statuses

We recommend that you do not change the payment status manually. If you do so, it may be changed again by the plugin.

6Transaction management

You can capture, cancel and refund transactions directly from within the Shopware backend. Please note if you refund, void or capture transactions inside wallee the events will be synchronized into Shopware. However, there are some limitations (see below).

6.1Complete (capture) an order

You have the possibility for your transactions to have the payment only authorized after the order is placed. Inside the connector configuration you have the option, if the payment method supports it, to define whether the payment should be completed immediately or deferred.

In order to capture a transaction, open the order and click on the Complete button.

Note
When the completion is pending in wallee the order will stay in pending state.
capture transaction

Deferred payment completion

Retailers often have the case that they want to authorize transactions only and start the fulfillment process once all items are shippable. This is also possible with wallee.

However, certain processes should be followed. If you have configured payment completion to be deferred you should capture the transaction before you initiate the shipment as it can always happen that a completion fails. If you want to be sure that you do not ship items for which you have not been paid you should postpone the shipment until the fulfill state is reached. Initially the transaction will be in the Authorized state in wallee and Clarification required in Shopware. If you want to start the fulfillment process make sure you initiate the completion process as described above. Once the completion was successful the order will switch into the Fulfill state in wallee and into Processing state in Shopware. You can now start the fulfillment process.

6.2Void a transaction

In order to void a transaction, open the order and click on the Void button.

Note
You can only void transactions that are not yet completed.
void transaction

6.3Refund of a transaction

You have the possibility to refund already completed transactions. In order to do so, open the captured order. By clicking on the Refund button, the window for refunds will open. In case the payment method does not support refund, you will not see the possibility to issue online refunds.

refund transaction 1

You can make refunds based on product quantity. In order to do so, open the credit memo window and enter the amount of products you wish to refund to your customer.

refund transaction 2

You can carry out as many individual refunds as you wish until you have reached the quantity of the original order. The status of the order then automatically switches to complete.

Note
It can take some time until you see the refund in Shopware. Refunds will only be visible once they have been processed successfully.

6.4On hold orders

As long as the delivery should not be done the state of the order will be in Clarification required. This happens when the transaction in wallee has not reached the fulfill state.

There are essentially two reasons why this can happen:

  • The transaction is not completed. In this case you have to complete the transaction as written above.

  • We are not able to tell if you should fulfill the order. The delivery decision is done automatically. If this does not happen within the defined time frame, wallee will generate a manual task which you should observe and follow the instructions. When there is a manual task we will also display it in the Shopware Backend.

You can find more information about manual tasks in our Manual Task Documentation.

6.5Limitations of the synchronization between wallee and Shopware

Please note that captures, voids and refunds done in wallee are synchronized. However, there are some limitations. Inside wallee you are able to change the unit price and the quantity at once. This can not be done in the Shopware backend. We therefore recommend that you perform the refunds always inside the Shopware backend and not inside wallee. If a refund cannot be synchronized it will be sent to the processor but it could be that you do not see it inside your Shopware backend.

You can find more information about Refunds in wallee in our Refund Documentation.

6.6Tokenization

In case the payment method supports tokenization you can store the payment details of your customer for future purchases. In order to use this feature make sure that the One-Click-Payment Mode in your payment method configuration is set to allow or force storage.

Note
Tokenization is not available for guest checkouts.

7Error logging

The extension uses the Shopware logging functions which are automatically active in your Shopware store. The extension will log various unexpected errors or information which can help identify the cause of the error. You can find the logs on the server of your store in the var/log/ folder.

8FAQ

8.1How to install the plugin using composer?

You can install the plugin using composer by updating the composer.json file in the root directory of your Shopware store and wait for Composer to finish updating the dependencies.

composer require wallee/shopware-5

Once this done, continue with step 2 of the installation process. See Installation.

8.2How can I make the payment methods appear in the checkout?

Make sure that you followed the Configuration section by stating your wallee space ID and application user’s access information in the Shopware backend. By saving the configuration form the synchronization of the payment methods and the set up of the webhooks are initiated.

Make sure that you have synchronized the plugin’s settings by pressing the "Synchronize" button.

Make sure that the payment methods are assigned to at least one shipping method.

If this does not solve the problem, it could be that you use a special fee or coupon module that we do not support. Try to disable this plugin and see if it helps. The payment methods are only displayed if the plugin’s total calculation matches the actual order total.

9Support

If you need help, feel free to contact our support.