When orders with PayPal payment methods fail due to technical reasons or creditworthiness issues, stock continues to be reserved even though no goods are shipped. To solve this problem, the order status must be manually set to Cancelled. Below we show you how to automate this using the Flow Builder.
Create a rule for all PayPal payments
First, create a new rule under Settings → Shop → Rule Builder with all PayPal payment methods:
Create flows for cancelled and failed payments
Now go to Settings Shop Flow Builder and create two flows as follows:
Release stock reservation for cancelled PayPal payments
Trigger: Status reached → Order transaction → Status → Cancelled
Condition (IF): Here you select the rule you created above.
Action (THEN): Select the Set order status option.
Release stock reservation for failed PayPal payments
Trigger: Status reached → Order transaction → Status → Failed
Condition (IF): Here you select the rule you created above.
Action (THEN): Select the Set order status option.
Activate flows
After saving, you still need to activate the flows if you haven't already. You can find more information about the Flow Builder here in the Shopware documentation.
