Automattic / newspack-plugin

An advanced open-source publishing and revenue-generating platform for news organizations.
https://newspack.com
GNU General Public License v2.0
326 stars 49 forks source link

Prevent failed WooCommerce orders from being synced to Salesforce #711

Open dkoo opened 3 years ago

dkoo commented 3 years ago

Currently, WooCommerce orders are synced to Salesforce as soon as they're successfully created and their webhooks fired. However, these orders can be created and fire a webhook on successful creation, but with a failed status, which might happen if Stripe rejects the payment because of spam orders, for example.

In this case the order info is still sent to Salesforce. We should check the status prior to syncing and prevent failed order data from being sent.

adekbadek commented 2 years ago

Is this issue still relevant, @dkoo ?