Process Items After Payment
-
I’m working with a service that is a 3rd party layer over several services. The requirement is that once payment is processed successfully with Woocommerce we can complete the order with the third-party site. Once that is completed we add additional line item metadata and then render the information into the checkout complete page.
I’ve attempted to use
woocommerce_payment_successful_result
and make the API calls there, storing the return data as item meta. But it seems as though doing async methods in a filter is not supported since I always receive an empty array. If I use an action this works, but I have not discovered an action I can call that will process after a payment is fully completed and before the checkout page is rendered.Is there any action I can use to make these calls and render details into the checkout completed page while ensuring that payment has been successful before I make those API calls.
- The topic ‘Process Items After Payment’ is closed to new replies.