• Resolved sloped

    (@sloped)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Erica K. a11n

    (@piratepenpen)

    Automattic Happiness Engineer

    Hey @sloped,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Hopefully you will get some answers! ??

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Process Items After Payment’ is closed to new replies.