• Resolved pooruvisingh

    (@pooruvisingh)


    Hello

    I am implementing a custom woocommecre payment method and i need help with how can I trigger the woocmmerce checkout validation before I call my apis to compelete payment in JS because jQuery(“form.checkout”).submit(); will trigger the validation and in PHP in payment method class in proceess_payment function we write the logic for completing payment but I cant do this because I have a limitation to complete the payment from fronted JS only so how can I first validate the woocmmerce fields and then perform my payment completion

Viewing 2 replies - 1 through 2 (of 2 total)
  • Zee

    (@doublezed2)

    Hello pooruvisingh,

    Thank you for contacting WooCommerce support.

    I understand you’re implementing a custom WooCommerce payment method and need to trigger WooCommerce’s built-in checkout field validation in JavaScript before calling your payment API, without using the process_payment PHP function.

    Custom development is outside our support scope. I recommend working with a developer through Codeable or WooExperts. You can also ask for help in the Woo Community Slack for input from other developers.

    Let me know if you have any other questions.

    Best regards.

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    We noticed that we haven’t received a reply from you for some time, so I’ll mark this thread as resolved. If you need more help, please start a new thread.

    If you have a few minutes, we’d love if you could leave us a review: https://wordpress.org/support/plugin/woocommerce/reviews/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Woocmmerce checkout validation trigger’ is closed to new replies.