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.
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.