You are currently viewing the article on an older Shopware version!

After Order Payment Process

In Shopware 6, payment and ordering are completely separate. This means that, unlike in Shopware 5, an order is triggered as soon as the customer clicks on Submit payment in the checkout.

Settings

In the settings of your administration you have the possibility to configure the event actions, which for example should occur after an order without payment and the display in the shopping cart.

Business events

To configure individual settings for the different events, you have the possibility to link the events (e.g. certain order/payment status) with rules (e.g. payment methods) and/or email templates in the administration under Settings > Business events. In the overview you will see a list of the events.

Event (1): In the section Event name you will find the respective event, which will be triggered upon activation and the appropriate event. This is a mandatory field if you create a new event under Add event action (8).

Title (2): Under Title, you can enter a name for the event action. This is not a mandatory field. By default, existing event actions do not have titles.

Sales Channel (3): This column shows which sales channel was selected for this event. If no sales channel is entered here, the event applies to all existing sales channels.

Rules (4): Under Rules you can select existing rules or even create and assign new rules. These rules help you to determine under which conditions an event should be triggered.

Email template (5): The mail template specifies which e-mail template is used to send the e-mail.

Active (6): In this section you can see which events are enabled or disabled.

List settings (7): In the list settings, which can be viewed via a context menu, you can configure the view of the overview.

Add business event (8): With this button you can add new event actions.

If you click on an existing event from the overview, you can edit and save the data.

If you click on the link Open email& template, you will automatically be taken to the edit mask
Edit email template. Here you can, for example, attach files and/or adapt the email template.

Within an event you can also enter specific email recipients who would then receive the email, e.g. if you as the shop owner would like to receive a copy of the order confirmation.

Shopping cart

If you want to allow your customers to cancel their order afterwards, for example after a payment cancellation, you can configure this function in the Settings > Cart settings. Activate the option Enable refunds.

Examples

Send order confirmation if not PayPal

The order confirmation should only be sent if a payment method other than PayPal was used.

For this condition, you can edit the event order has been received already in the standard system. In the editing mask in the section Rules click on Create new rule. There you select the condition Payment method. In the next step you select Is none of and then in the last step you select the payment method PayPal. Then save the rule you just created.

Now your customers will only receive the order confirmation if the order was not placed with the payment method PayPal.

Resend order confirmation if paid with PayPal

The order confirmation should only be sent after the payment has been made when using the PayPal payment method.

If you want an order confirmation to be sent only after the customer has completed the payment via PayPal, you have to create a new event. To do this, click on the Add event action button and select the Payment reached, status Paid option from the drop down list for the event. For email template, select the order confirmation. Afterwards you have to create a new rule under Rules, which condition is,
Is one of PayPal. In order to save the global rule, you have to enter the priority, because this is a required field.

The payment process

Order overview

As soon as an unpaid order with a payment method such as PayPal is available, you will see it in the order overview with the payment status "failed". This does not mean that there is a technical problem with the PayPal extension, but that the customer has not yet made the payment. This can be the case if the customer deliberately cancels the payment or there is a discrepancy with the customer's PayPal account.

After Order Payment Process in case of cancelled payment

This occurs when a payment fails. As soon as this is the case, the customer is again given the option to complete his payment with another payment method. The background to this is that the order and the payment are detached from each other. The order is therefore received by the system despite the failed payment. Only the payment status remains "Open". The customer can continue with the selection of another payment method and does not have to worry that the entire order has been canceled.

To make this process more transparent, here is a simplified diagram of the technical process.

View in the Storefront

If an order has been placed but not paid for, the customer will first receive a notification that the payment process has failed. If the customer now clicks on the link Change payment, the order will be made available again in the checkout process. Here, the customer has the option of using the same payment method again or changing it to another payment method.

In this overview, the customer not only has the possibility to complete the order but also to cancel it. However, the option to cancel the order is only available if you have activated this option in the administration under Settings > Cart settings > Enable refunds.

The customer has another possibility to restart the payment process within his account.

The customer can either repeat the order by clicking on the red button Complete payment or by clicking on Repeat order in the context menu. The payment method can also be changed again by clicking on this button.
If the option to cancel is activated in the settings, the customer can also cancel his order at this point.

As long as the order has not been set to the status "paid", a change of payment method can still take place or the payment can still be completed. Once the status "paid" has been reached, the order can only be cancelled by the customer.

Was this article helpful?