Shop
This project contains the code behind the single-page store at Stripe Shop. We ported the backend to Parse's Code Cloud so you can easily launch and modify your own copy. (Also, we didn't want to open-source the photo of Kat and Thairu, so we decided to take a replacement.)
Feel free to take whatever pieces you find useful! We ask only that you don't use it to sell actual Stripe T-shirts
The details
We have a running live demo of the app. It's running in Stripe's test mode, so you'll have to use 4242-4242-4242-4242
as the card (and we won't actually send you a shirt, sorry!).
Getting up and running
To get your own instance of Shop up and running, you'll need to do the following:
- Create a new Parse app.
- Copy
config/global.json
toconfig/local.json
. - Add the Application ID and Master Key to
config/local.json
. - Set up the
parse
command line utility (you may find their docs helpful). - Create a
parseapp.com
subdomain for your app. The same docs should be helpful. - Run
parse deploy
. You now have a running Shop!
Not required to get the app running, but you'll probaby also want to:
- Create your own Stripe account and puts its keys into
cloud/config.js
. (By default, Shop uses a fixed test account.) - Put your Google analytics tracking information into
public/assets/js/ga.js
.
Uncaught ReferenceError: _ is not defined
After changing
cloud/views/index.ejs
file to use non minified shop.jsGetting Uncaught ReferenceError on below line
in here
Error with address validation or something
When a payment request is made, you'll get error message "Oops... address must be at least 0 characters long."
Try it for yourself, https://shop-demo.parseapp.com/
Demo site is down
https://shop-demo.parseapp.com/ is responding with
This repo hasn't been modified in 5 years. If it's deprecated - it might help potential stripe users if you mark it clearly as such.
Enable Sourcegraph
I want to use Sourcegraph for shop code search, browsing, and usage examples. Can an admin enable Sourcegraph for this repository? Just go to https://sourcegraph.com/github.com/stripe/shop. (It should only take 30 seconds.)
Thank you!
Error syntax
In
/cloud/model.js
line 22 states the field should be longer thanmax_length
, rather than shorter.Line 21 - 23:
Different priced items
We are trying to configure to have 2 items with different prices, they add and total in the cart correctly but the description price stays the same.
SKU 1 is correct at $14/each SKU 2 should be shown as $18/each
How can we modify the code to achieve this?
I also noticed that the total that is passed thru to stripe is also incorrect...