• Resolved spmezzomo

    (@spmezzomo)


    Hello,

    I’m having an issue with the Multibanco payment gateway output because the ‘get_instructions‘ function in the ‘class-wc-gateway-stripe-multibanco.php‘ file, which returns the order amount (Montante), is using ‘esc_html‘ causing all HTML tags to appear on the front-end. I’ve tested replacing it with ‘wp_kses_post‘ and it works perfectly, but I can’t manually modify the plugin for obvious reasons.

    I’ve tried replacing the function, but maybe due to not knowing how to do it correctly, it only affects the checkout, and the email sent to the customer still has the error.

    Is there a way to fix this problem?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi there @spmezzomo ??

    Thank you for reaching out about this!

    I’m having an issue with the Multibanco payment gateway output because the ‘get_instructions‘ function in the ‘class-wc-gateway-stripe-multibanco.php‘ file, which returns the order amount (Montante), is using ‘esc_html‘ causing all HTML tags to appear on the front-end. I’ve tested replacing it with ‘wp_kses_post‘ and it works perfectly, but I can’t manually modify the plugin for obvious reasons.

    It appears that it has already been reported, here.

    Feel free to subscribe to the report on GitHub, in order to receive all the updates on its progress.

    I hope this is helpful! Please let us know if you have any further questions or concerns.
    We will be happy to help you further.

Viewing 1 replies (of 1 total)
  • The topic ‘Stripe Multibanco Class issue’ is closed to new replies.