• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

WooCommerce Order Created but not marked as paid

Anastasia

Member
Hi,

We have a number of flows which are triggered by Order Created in WooCommerce, and grant offers and also trigger automations. However, we only want these to run when the order has been paid for.

We have a few instances in which our customers create the order, attempt payment but fail first time, for whatever reason, and then when payment is successful the second time, it doesn't trigger the flow, because it has already not passed the Needs Payment filter.

Can you help with resolving this issue?

WooCommerce has a specific webhook for Order Paid, but pabbly doesn't seem to connect to that.
 
P

Pabblymember11

Guest
We have a number of flows which are triggered by Order Created in WooCommerce, and grant offers and also trigger automations. However, we only want these to run when the order has been paid for.
For that, you can use the filter action step which will only process the order which is completed.

E.g. -

1668239020624.png
 

Anastasia

Member
Hi, is there a reason why I couldn't allocate the webhook to "Order Paid" in WC as it returns a similar JSON object to Order Created?
 
P

Pabblymember11

Guest
why I couldn't allocate the webhook to "Order Paid" in WC as it returns a similar JSON object to Order Created?
Since the status of the order always comes with the Status field already defined in the WC account.

So, you will be required to pass the exact text of the status which is meant for Paid for an order.

If it is coming Paid from your WC account then you can use it Paid as it is.
 

Anastasia

Member
Hi! When the order is created by initial payment failed, the status shows as failed, rather than completed or processing. And when that is revised with the second attempt at payment, the webhook doesn't fire off, because the order was created during attempt 1.

So that'd leave us with the same problem that I originally reported.

Therefore, is there an issue you can foresee with activating the webhook only when WooCommerce marks an order as paid, rather than an order as created?
 
P

Pabblymember11

Guest
Hey @Anastasia

If your order is getting updated after the pending status then you would be required to use another workflow with the trigger event "WooCommerce: Order Updated" which will then process your order only after getting successful payment.

2022-11-14_12h52_23.png
 
Top