Skip to main content

How can I release stock reservations for cancelled PayPal payments?

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:

PayPal_Zahlungsarten Regel.png

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

    PayPal Bestandsreservierung_abgebrochen.png

  • Condition (IF): Here you select the rule you created above.

    PayPal Bestandsreservierung_Bedingung.png

  • Action (THEN): Select the Set order status option.

    PayPal Bestandsreservierung_Statuswechsel.png

Release stock reservation for failed PayPal payments

  • Trigger: Status reached → Order transaction → Status → Failed

    PayPal Bestandsreservierung_fehlgeschlagen.png

  • Condition (IF): Here you select the rule you created above.

    PayPal Bestandsreservierung_Bedingung.png

  • Action (THEN): Select the Set order status option.

    PayPal Bestandsreservierung_Statuswechsel.png

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.

Did this answer your question?