dayhaysoos / use-shopping-cart

Shopping cart state and logic for Stripe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use-shopping-cart

All Contributors

NPM

A React Hook that handles shopping cart state and logic for Stripe.

https://useshoppingcart.com

Product JSON example Front-End code example Serverless code example Click to open gist.

Documentation

View our comprehensive documentation website. βœ¨πŸ“š

Frequently Asked Questions

This is a list of questions that you might have about use-shopping-cart once you get started.

Why am I getting an error about formatToParts not being a function on older browsers?

You need to polyfill formatToParts if you want to support older browsers. You can find more info on manually polyfilling formatToParts in issue #158.

Why am I getting an SSR error about text content not matching?

It is likely that you are using a value like cartCount that is loaded from LocalStorage which doesn't exist on the server. More info in issue #122

Contributing to use-shopping-cart

If you're working on this project please check out the CONTRIBUTING.md file.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Kevin Cunningham
Kevin Cunningham

⚠️ πŸ’»
Ian Jones
Ian Jones

⚠️
Nick DeJesus
Nick DeJesus

⚠️ πŸ“ πŸ’Ό πŸ› πŸ”£ πŸ“– πŸ” πŸš‡ πŸ“† πŸ’¬ πŸ‘€ πŸ›‘οΈ
Shodipo Ayomide
Shodipo Ayomide

πŸ“–
Anders Bech Mellson
Anders Bech Mellson

πŸ’»
Thor ι›·η₯ž
Thor ι›·η₯ž

πŸ“– πŸ’» ⚠️
Ryan Warner
Ryan Warner

πŸ“–
Horacio Herrera
Horacio Herrera

πŸ“–
Brian Douglas
Brian Douglas

πŸ“–
Brittney Postma
Brittney Postma

πŸ“–
Prince Wilson
Prince Wilson

πŸ“–
Eric Howey
Eric Howey

πŸ“– πŸ”Œ
Hidetaka Okamoto
Hidetaka Okamoto

πŸ’»
Andria Brown
Andria Brown

⚠️ πŸ’» πŸ“– πŸ› πŸ’‘ πŸš‡ 🚧 πŸ€” πŸ’¬ πŸ‘€
Konnor Rogers
Konnor Rogers

πŸ’»
Larissa Pissurno
Larissa Pissurno

πŸ“–
Lucy Macartney
Lucy Macartney

πŸ“– πŸ–‹ πŸ’‘
brendanmorrell
brendanmorrell

πŸ’»
Tom
Tom

πŸ’»
Milind Goel
Milind Goel

πŸ“–
Rajat Bhatt
Rajat Bhatt

πŸ’‘

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT Β© dayhaysoos

About

Shopping cart state and logic for Stripe

License:MIT License


Languages

Language:JavaScript 89.5%Language:TypeScript 10.4%Language:Shell 0.1%