• Resolved Mathew

    (@mykerchief)


    I am new to WP plugin develpment, we’re developing payment option with woocommerce plugin. In public function process_payment($order_id){} method, in case of specific exception / error from our server, need to show swal popup using JS. Also tried with $('body').on('checkout_error',function(){}); But cannot read the HTTP response as getting in process_payment method. Please suggest me better way to do this.

    • This topic was modified 4 years, 1 month ago by Mathew.
    • This topic was modified 4 years, 1 month ago by Mathew.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @mykerchief ,

    This is a fairly complex development topic. I’m going to leave it open for a bit longer 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.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

    Thread Starter Mathew

    (@mykerchief)

    Still, I don’t find a way to pass the response to JS. Please suggest any way communicate between processpayment and checkout on error.

    Mike Straw

    (@mikestraw)

    Hi @mykerchief ,

    Coding and development topics like this are better discussed in the developer community channels. Sometimes folks will chime in here, but these forums are more suited for using the plugin as opposed to developing for it.

    If you check out the developer resources and community, I think you’ll have better results:

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘On checkout error open Swal popup based on payment_process response code.’ is closed to new replies.