• Hello,

    This is the code generated by a payment gateway which i am trying to embed on my website.
    <form><script src=”https://checkout.razorpay.com/v1/payment-button.js&#8221; data-payment_button_id=”pl_Jw2puYjZN9Yy7S” async=””> </script> </form>

    However, the button doesn’t show up and instead it gives me an error “Payment Button is not added. Add Button script inside ‘form’ tag”. And when you press “OK” on this popup, it says “Payment Button cannot be added. Provide a valid payment button id”

    I tried the above HTML code on w3sch00ls.com and it worked perfectly, Can somee help me resolve this please?

    Thank you

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I put your code in a Custom HTML block on a sandbox WP 6.0.1 site (default theme, no plugin active)… and the payment button appeared right away, with no alert pop-up.

    Something on your site is causing a conflict, not WordPress.

    Something on your site is causing a conflict, not WordPress.

    Indeed, and it seems to be cache-related.

    If I add a random query parameter to the URL (thereby bypassing the cache), the page loads with the payment button, and there’s no alert pop-up message.

    Try: https://www.thetrainernetwork.in/featured-listing-plans/?gcxjDAWLH

    Thread Starter mb299

    (@mb299)

    @gappiah Thanks George

    I figured out that its the cache problem. I am using WP Rocket and now i have included this URL to “Never Cache this Page” & it worked.

    Though there has to be a better solution than “Not Caching”

    Regards
    Manish

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

The topic ‘HTML Code not working – Generating error’ is closed to new replies.