# Stripe integration tutorial

**URL:** <https://talk.jekyllrb.com/t/stripe-integration-tutorial/309>\
**Category:** Help\
**Created:** [March 13, 2017, 8:20pm UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309 "2017-03-13T20:20:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![grantsmith](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/grantsmith/32/121_2.png) [@grantsmith](https://talk.jekyllrb.com/u/grantsmith)\
**Post date:** [March 13, 2017, 8:20pm UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/1 "2017-03-13T20:20:13Z")

</div>

Hi all,

I have a site using Stripe currently, very simple and quick. [http://run-and-roll.co.uk/](http://run-and-roll.co.uk/). I used [https://www.commencepayments.com](https://www.commencepayments.com) to get the Stripe payments to work, but it doesn’t appear to allow me to limit the amount of transaction?

I wondered if anyone had a good tutorial for integrating stripe directly, hence I would be able to restrict the amount of transactions?

Thanks

Grant

---

<div class="post-metadata">

**Author:** ![michael](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michael/32/120_2.png) [@michael](https://talk.jekyllrb.com/u/michael)\
**Post date:** [March 14, 2017, 6:42pm UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/2 "2017-03-14T18:42:57Z")

</div>

Hey @grantsmith it looks like you can designate the amount with commence payments. According to the snippet they provided

[https://gist.githubusercontent.com/matthewarkin/9dff3fba2b9786343b4a/raw/b427ac9012e75e300f840daed180df7285c335ee/commence.html](https://gist.githubusercontent.com/matthewarkin/9dff3fba2b9786343b4a/raw/b427ac9012e75e300f840daed180df7285c335ee/commence.html)

`data-amount="2000"`

Where 2000 === $20 since the value is in cents. Is this what you’re talking about?

---

<div class="post-metadata">

**Author:** ![grantsmith](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/grantsmith/32/121_2.png) [@grantsmith](https://talk.jekyllrb.com/u/grantsmith)\
**Post date:** [March 14, 2017, 6:56pm UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/3 "2017-03-14T18:56:56Z")

</div>

Hi Michael,

Thanks for the responce. No, the value is fine. I need to only sell 20 slots. So when the amount is reached, no one else can purchase a slot. This is a built in function of Stripe, so it’s a little weird Commence Payments doesn’t on the face of it allow this function?

---

<div class="post-metadata">

**Author:** ![michael](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michael/32/120_2.png) [@michael](https://talk.jekyllrb.com/u/michael)\
**Post date:** [March 14, 2017, 7:03pm UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/4 "2017-03-14T19:03:34Z")

</div>

Oh I gotcha. Maybe reach out to them and see if they can support it? Otherwise you’d have to fire up a server to handle Stripe transactions. Stripe has something called Checkout but it only generates a token which would be used on a server to actually create the charge.

Have you heard of [Gumroad](https://gumroad.com)? It’s been a while since I’ve used them but I believe you can limit the seats/quantity of an item. There’s also [Plasso](https://plasso.com/) but unsure if you can limit seats and quantity.

---

<div class="post-metadata">

**Author:** ![grantsmith](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/grantsmith/32/121_2.png) [@grantsmith](https://talk.jekyllrb.com/u/grantsmith)\
**Post date:** [March 14, 2017, 7:07pm UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/5 "2017-03-14T19:07:06Z")

</div>

Thanks Micheal,

Yes I sent them a support request, but there is no reply at present. Do Gumroad and Plasso integrate with a Jeykll website?

---

<div class="post-metadata">

**Author:** ![michael](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michael/32/120_2.png) [@michael](https://talk.jekyllrb.com/u/michael)\
**Post date:** [March 14, 2017, 7:21pm UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/6 "2017-03-14T19:21:05Z")

</div>

Not particularly Jekyll but it should be a snippet of JavaScript code that you can add to Jekyll and deploy. Both services exist with the idea that you don’t have to roll your own server to handle transactions. It just integrates into your existing codebase/site.

---

<div class="post-metadata">

**Author:** ![grantsmith](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/grantsmith/32/121_2.png) [@grantsmith](https://talk.jekyllrb.com/u/grantsmith)\
**Post date:** [March 15, 2017, 8:30am UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/7 "2017-03-15T08:30:25Z")

</div>

Hi,

On [http://jekyll.tips/services/](http://jekyll.tips/services/) they are promoting Stripe as an e-commerce solution for Jekyll, I’m a little surprised that there isn’t more information available on this?

---

<div class="post-metadata">

**Author:** ![turnage](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/turnage/32/708_2.png) [@turnage](https://talk.jekyllrb.com/u/turnage)\
**Post date:** [January 19, 2018, 6:46am UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/8 "2018-01-19T06:46:38Z")

</div>

@grantsmith Did you find out how to limit transactions? I see you’re using the commence button now.

---

<div class="post-metadata">

**Author:** ![grantsmith](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/grantsmith/32/121_2.png) [@grantsmith](https://talk.jekyllrb.com/u/grantsmith)\
**Post date:** [January 19, 2018, 8:55am UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/9 "2018-01-19T08:55:17Z")

</div>

Hi @turnage,

Sorry no, never did, the issue is that Commence Payments doesn’t appear to support the feature. If you find anything. Please let me know

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [January 21, 2018, 9:24am UTC](https://talk.jekyllrb.com/t/stripe-integration-tutorial/309/10 "2018-01-21T09:24:30Z")

</div>

Snipcart works fine with Jekyll for E-commerce:

> **[Static Site E-Commerce: Integrating Snipcart with Jekyll - Snipcart](https://snipcart.com/blog/static-site-e-commerce-part-2-integrating-snipcart-with-jekyll)**
>
> In this post we'll show you how to enable e-commerce on static websites by integrating Snipcart to Jekyll, a popular open source program.
