Has anyone written stripe integration for their app?


#1

Has anyone written stripe integration for their app (not a package, but methods and event listening, etc.)? I’m looking for an open source app that I can fork for my own Stripe integration or at least look at to get me moving in the right direction. Thanks


#2

I know that Danimal from dominusgame.net uses stripe, his project is all open source.

edit: github link


#3

have you read this?

http://themeteorchef.com/recipes/building-a-saas-with-meteor-stripe-part-1/


#4

You may find some useful Stripe-related repos here as well:


#5

Thanks for sharing :slight_smile:


#6

This could be a good example: https://www.youtube.com/watch?v=cAt_dL7v1Zo


#7

Thanks @slava I’ll take a look at this.


#8

Thanks, I’ll take a look at these.


#9

@tomsp not yet, but I will. Thanks


#10

Thanks, I’ll check it out.


#11

Looking at the source I think he is using this package.
Documentation looks pretty simple.


#12

I sent your example to Stripe to ask them to use it on their examples page. Your walkthrough has been very helpful. Thank you.


#13

Thanks, I really appreciate that! Good to hear it was helpful.


#14

Not sure I see where stripe is used for this game/github link, which I think is actually: https://github.com/dan335/dominus-packages


#15

I also wrote this into my app. https://github.com/c316/give


#16

Make sure to use the official NPM Stripe package. Any Meteor Stripe package that you find wrap an old version of the Stripe API. I experienced that myself the hard way…


#17

That is pretty awesome. I looked through the code to try and find up setup for Stripe. It is a pretty impressive application you have.

I didn’t see where Stripe was imported, just I saw it used with setpublic or privatekey. After that, is that all that is necessary? Is there a really short Stub that you could show me that shows how to set it up and one simple charge function or something?

Really awesome library. I will keep perusing the code to see if I can figure it out.


#18

Thanks for the compliment.

Stirpe is required in the /server/lib/globals.js file.

This is the server side. For the client side just use a normal HTML tag in your app.html file.

My app might not be the best source to try to find a simple use case. This was my first real world thing I wrote and it is pretty large. It also has integrations with other services mixed in. Stripe has good docs and some good examples. I’d recommend looking at @themeteorchef. He wrote a guide that Stripe uses on their docs site as an example for Stripe/Meteor integration.


https://themeteorchef.com/recipes/building-a-saas-with-meteor-stripe-part-1/


#19

Anyone playing with integrating Stripe is going to want to use this: https://ngrok.com/. It’s a great little service that lets Stripe send webhooks to your Meteor server running on localhost. Extremely useful for testing.


#20

I would agree, and if you want to be able to play back even better you can tie runscope.com into ngrok.