Conflict with PayPal Plugin (SW 6.4.0.0 - 6.4.1.0)

As of SW version 6.4.1.1, the conflict with the PayPal plugin no longer occurs.

Not relevant for customers who use our plugin asynchronously (e.g. via cron job, "Create invoice on payment status", "Create invoice on order status"), as well as for customers who do not use a PayPal plugin.

Problem Description

The problem occurs when both plugins are activated simultaneously and our plugin is configured to create and send the invoice immediately after order receipt.

Associated error message:

Screenshot 2021-06-10 at 10.41.14.png

After our careful analysis, we could not identify any issues with our plugin. The problem has occurred since the SW update 6.4.0.0. Before that, everything worked perfectly, and we have not made any changes in this area of the plugin.

The problem manifests itself in that the PayPal plugin interferes with the process while our plugin is still running.

What our customers report (most recent first)

  • Customers report that the same behavior also occurs with other plugins that use the document creation process in connection with the PayPal plugin.
  • An error message appears after order completion when the PayPal plugin is activated.
  • Shop customers cannot access their customer account.

How our plugin creates documents

To create documents, we use the 'api.action.document.invoice' route. That is, a request is sent to the Shopware system synchronously to create a document. For this, the same configuration data is transmitted as if you were to create this document manually in the admin area.

After this request is sent to Shopware, the system should handle various aspects of document creation. Order version ID, media files, etc. are created by Shopware and stored in the database.

Workaround

Our plugin is designed for various scenarios, which allows you to use our plugin despite this problem.

  • As a solution, you can try to set up the cron job (Scheduled Tasks) in our plugin configuration. To do this, you must enable "Enable cron job" in the basic settings and enter all payment methods used in your shop in the further settings under "Exclude payment methods from synchronous processing". The cron job runs asynchronously every 10 minutes, so invoice sending does not occur immediately after order completion. Note: This configuration must be performed individually for each sales channel. When configuring for "All sales channels", some plugin settings are ignored.
  • If a problem also occurs in the order view of the customer account with the same error message, you must disable the "Provide invoice in customer account" configuration option of the plugin.

Contact PayPal Plugin Support

Some customers contact our support first and some even threaten bad reviews. However, none of them realize that the problem is very complex and multiple factors are involved. Currently, the cause of the problem cannot be identified. The error could be caused by our plugin, by the PayPal plugin, or even by the system itself.

Therefore, we recommend that you also contact PayPal plugin support as well as Shopware support. In this way, the present problem could be resolved more quickly.

Was this helpful?