# Stripe Donations Plugin

**URL:** https://meta.discourse.org/t/stripe-donations-plugin/59036
**Category:** Plugin
**Created:** [13 Marzo 2017, 11:11pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036 "2017-03-13T23:11:53Z")
**Posts on this page:** 20
**Page:** 2

<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: [15 Novembre 2017, 8:14am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/21 "2017-11-15T08:14:34Z")

</div>

> [@modius](#):
>
> Would this plugin ever come close to this goal? ie. should we be collaborating here or developing something separate

These ideas all sound good to me.

As mentioned earlier, I’m currently working on another plugin that will store Stripe transactions against forum users. It’ll take me a while as I’m learning Ruby, Rails, and the Discourse plugin interface. So if you’re willing to wait, I can include the features you’re looking for into the donations plugin. Or you’re more than welcome to submit a PR.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [15 Novembre 2017, 1:11pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/22 "2017-11-15T13:11:30Z")

</div>

The Patreon plugin is a way to accomplish this. Patreon is a bit clunky, but I have at least one client who seems happy with it.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [25 Novembre 2017, 7:23am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/23 "2017-11-25T07:23:02Z")

</div>

> [@ChrisBeach](#):
>
> Also, any plans to allow markup in posts to render a Stripe checkout button?

I also would need such a button. Is it possible to implement it and add it to the composer toolbar?

> [@rimian](#):
>
> The user can be added to a group or awarded a badge if the transaction is successful. You’ll need to create the badge and group then configure that in the settings.

Can the badge be selected automatically depending on the amount donated? We currently have a custom Stripe implementation in our complimentary WordPress website, and we award one of the 3 badges available, depending on the transaction amount.

* * *

Also, may someone share the screenshot, how the donation button looks? Where it is added and can we change its title?

* * *

Finally, at the end of the day, is this plugin currently in a working condition?

---

<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: [25 Novembre 2017, 10:54am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/24 "2017-11-25T10:54:31Z")

</div>

> [@meglio](#):
>
> Is it possible to implement it and add it to the composer toolbar?

I tried to implement the checkout button in posts but it wouldn’t render correctly.

More on that here:

> [@Getting a Stripe Checkout button (\<script\>, \<form\> tags) rendering in a post (via plugin).. help required](https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967):
>
> 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) 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 : When I enabled a customised hea…

I have, however, got the checkout button to render on a static page in my work-in-progress new plugin. I’ll post details when the plugin is complete.

> [@meglio](#):
>
> Can the badge be selected automatically depending on the amount donated?

Not at the moment but you’re welcome to submit a PR to [my fork](https://github.com/chrisbeach/discourse-donations)

I’ll answer the remainder of your post soon

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [25 Novembre 2017, 2:35pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/25 "2017-11-25T14:35:26Z")

</div>

Are you using SSO? You could pass that group information to discourse from WordPress.

---

<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: [26 Novembre 2017, 2:12pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/26 "2017-11-26T14:12:39Z")

</div>

> [@meglio](#):
>
> Also, may someone share the screenshot, how the donation button looks? Where it is added and can we change its title?
> 
> Finally, at the end of the day, is this plugin currently in a working condition?

I have tested the plugin on my personal sandbox and my Stripe dashboard shows payments being received successfully 👍

I have just updated the readme with some screenshots and instructions:

[https://github.com/chrisbeach/discourse-donations](https://github.com/chrisbeach/discourse-donations)

Here are those screenshots:

 ![menulink](https://global.discourse-cdn.com/meta/original/3X/3/4/345dd15f53b152ce7e80165def78240df6ad7ffa.png)

 ![pre-payment](https://global.discourse-cdn.com/meta/original/3X/1/2/12fa56083f0b0da642eec30f95dd4f61679b883b.png)

 ![post-payment](https://global.discourse-cdn.com/meta/original/3X/5/f/5fb56d9e98ba17516b548299cc347a4de21dfe11.png)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [26 Novembre 2017, 2:28pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/27 "2017-11-26T14:28:43Z")

</div>

@meglio Keep in mind that currently every new transaction creates a new customer in Stripe. Not a bug, but it could be an accounting issue.

> [@angus](#):
>
> One bigger change to be made is that we need to store the stripe customer id in a UserCustomField so it can be used when charging repeat donors. Currently, every new transaction from the same user is creating new duplicate stripe customers.

@meglio @ChrisBeach Could you guys explain what the use case / user story for having a stripe form in the compose is? i.e. why not just link them to the donate page. Just convenience?

---

<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: [26 Novembre 2017, 3:01pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/28 "2017-11-26T15:01:04Z")

</div>

> [@angus](#):
>
> Could you guys explain what the use case / user story for having a stripe form in the compose is? i.e. why not just link them to the donate page.

My original plan was to have a topic (as I currently have) explaining how advertising works, with a neat button included so visitors can pay immediately.

But since the checkout button stubbornly refuses to render in topics, I’m now working on a dedicated “static” page managed by the plugin.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [26 Novembre 2017, 10:17pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/29 "2017-11-26T22:17:12Z")

</div>

> [@angus](#):
>
> Could you guys explain what the use case / user story for having a stripe form in the compose is? i.e. why not just link them to the donate page. Just convenience?

I have a topic where we dicuss donations. I’d like to put a button there.

It is also asked about “how I can help the forum”. Would be nice to insert a direct action button right in the answer. Note: in PMs as well.

I’d like to install and use the plugin. Pls put a note here when it’s ready for production.

@angus , I’d be greatful if you can add a code to insert the button right in composer.

Also, it is not a big issue if a new Stripe customer is created for every single transaction.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [27 Novembre 2017, 2:37am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/30 "2017-11-27T02:37:24Z")

</div>

I’ve submitted a PR to fix the in-post payment button.

[https://github.com/chrisbeach/discourse-donations/pull/6](https://github.com/chrisbeach/discourse-donations/pull/6)

 ![20 AM](https://global.discourse-cdn.com/meta/original/3X/2/1/217254e1e67cdc467cc5beab377203e975b32ad4.png)

* * *

 ![30 AM](https://global.discourse-cdn.com/meta/original/3X/3/3/331c44fa2a2e26693a564ef4bdef4b821c643a83.jpg)

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [27 Novembre 2017, 5:37am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/31 "2017-11-27T05:37:47Z")

</div>

Great. Is the “Pay with Card” caption customisable?

---

<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: [27 Novembre 2017, 8:21am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/32 "2017-11-27T08:21:51Z")

</div>

Amazing, thanks @Angus! I have merged the PR

> [@meglio](#):
>
> Is the “Pay with Card” caption customisable?

Not at present. I’ll let you know when it is.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [28 Novembre 2017, 11:56am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/33 "2017-11-28T11:56:05Z")

</div>

Okay guys, do you think it’s stable enough for localisation? I’m willing to translate the plugin to Ru and then install it for our community, but obviously can’t use a button saying “Pay with Card” in English. Is it at least translatable, or not at all? If it is, I’ll be able to customise it through the admin panel.

Let me know when you think it’s good time to translate the plugin.

---

<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: [28 Novembre 2017, 12:25pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/34 "2017-11-28T12:25:44Z")

</div>

Will do, and much appreciate your help. 👍

---

<div class="post-metadata">

### Author: ![8BIT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/8bit/32/76872_2.png) [@8BIT](https://meta.discourse.org/u/8BIT)
#### Post date: [26 Dicembre 2017, 4:28pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/35 "2017-12-26T16:28:41Z")

</div>

now that stripe accepts bitcoin… going to take a look!

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [28 Dicembre 2017, 3:50am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/36 "2017-12-28T03:50:40Z")

</div>

> [@ChrisBeach](#):
>
> Will do, and much appreciate your help. 👍

Hi Chris, Hi @angus, any update on this plugin? Just in case

---

<div class="post-metadata">

### Author: ![8BIT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/8bit/32/76872_2.png) [@8BIT](https://meta.discourse.org/u/8BIT)
#### Post date: [28 Dicembre 2017, 6:32am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/37 "2017-12-28T06:32:13Z")

</div>

tried installing but had an error… will try again in a bit and provide more details… will update this post!

---

<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: [28 Dicembre 2017, 9:49am UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/38 "2017-12-28T09:49:27Z")

</div>

Hi @8BIT - could you provide details including which github URL you used in your app.yml file. Thanks.

> [@meglio](#):
>
> Hi Chris, Hi @angus, any update on this plugin? Just in case

I haven’t yet modified the button wording - will let you know when done.

---

<div class="post-metadata">

### Author: ![8BIT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/8bit/32/76872_2.png) [@8BIT](https://meta.discourse.org/u/8BIT)
#### Post date: [28 Dicembre 2017, 4:40pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/39 "2017-12-28T16:40:00Z")

</div>

i’ll give you an update shortly! thanks chris.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [29 Dicembre 2017, 10:01pm UTC](https://meta.discourse.org/t/stripe-donations-plugin/59036/40 "2017-12-29T22:01:59Z")

</div>

And here it is:

```
          - git clone https://github.com/choiceaustralia/discourse-donations.git

```

Oh. That’s the URL in the OP, but not the one mentioned in later posts, so presumably it’s the wrong one. If the link in the first post is indeed wrong, and your intent is not to confuse people could you edit the OP and/or change the site where the broken plugin is to tell people not to use it?

Or maybe it’s that @ChrisBeach’s `https://github.com/chrisbeach/discourse-donations.git` is the URL to use and the old one is abandoned? If that’s the case, please start a new topic and someone (me, for example) can move this one to #plugin:broken-plugin.

[Pagina precedente](https://meta.discourse.org/t/stripe-donations-plugin/59036.md?page=1)

[Pagina seguente](https://meta.discourse.org/t/stripe-donations-plugin/59036.md?page=3)
