• Resolved codenest

    (@codenest)


    Hi!
    I would like to ask is in your plugin any hook to catch to get the information about the failed payment? We want to show a custom error message on the checkout.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @codenest

    Are you referring to customizing the existing error messages that appear on the checkout page?

    Anytime a payment fails there should be a message that appears showing why the payment failed.

    Kind regards

    Thread Starter codenest

    (@codenest)

    Yes, i’m referring to the error message on the checkout page. We want to hide the default message from the top of the page and display our custom popup.

    Plugin Author Clayton R

    (@mrclayton)

    @codenest,

    You will probably need to override the $.scroll_to_notices function within WooCommerce to prevent scrolling to the top of the checkout page when there is an error.

    And you will want to clear the notices in WooCommerce before the ajax response is sent using action wc_stripe_process_payment_error.

    Kind Regards,

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

The topic ‘Hook for failed payment on Checkout’ is closed to new replies.