# Getting a Stripe Checkout button (\<script\>, \<form\> tags) rendering in a post (via plugin).. help required

**URL:** <https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967>\
**Category:** Development\
**Created:** [October 12, 2017, 11:03pm UTC](https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967 "2017-10-12T23:03:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [October 12, 2017, 11:03pm UTC](https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967/1 "2017-10-12T23:03:19Z")

</div>

I’m currently working on the [Discourse Stripe Donations plugin](https://github.com/chrisbeach/discourse-donations), forked from @rimian’s original work.

I’m close to getting a [Stripe Checkout button](https://stripe.com/checkout) displayed within a forum post, but something is preventing the Stripe HTML snippet (an inline script tag) from running.

[Example here](https://se6.life/t/testing-payment-link/43)

 ![BBB94301-033E-4FB4-A4CA-34CCFBD20D2F](https://global.discourse-cdn.com/meta/original/3X/8/5/85b998ee8d40a91b1bf8add10760a0b060ba24da.jpeg)

As you can see, the button doesn’t render in the post. Yet the DOM contains HTML elements which should cause the button to be rendered :

 ![28](https://global.discourse-cdn.com/meta/original/3X/3/6/360103b3c845f65d86ccfe7ed989d76436594919.png)

When I enabled a customised header with the same Stripe HTML, it worked perfectly. So, that rules out problems with the Stripe HTML or the interaction with Stripe’s server.

Below I’ve listed some things I have tried. Any more suggestions would be much appreciated 👍

### Enabling CORS in app.yml:

```plaintext
env:
       DISCOURSE_ENABLE_CORS: true

```

### Liberal CORS origins:

 ![21](https://global.discourse-cdn.com/meta/original/3X/1/d/1dce4343db0e3df52010a530ec1113f84c845814.png)

(I also tried a few different stripe https://… domains and sub domains in here without success)

### Loads of different allowed iframes:

 ![07](https://global.discourse-cdn.com/meta/original/3X/a/8/a8ed1801bbdae6f80d98e3934ac7bfc48ab1ef4e.png)

### HTTPS and Disabling Same Site Cookies:

 ![43](https://global.discourse-cdn.com/meta/original/3X/6/0/609eb0e6b7889ee49b47a6617a3e10d192746a76.png)

---

_[View the full topic](https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967)._
