Skip to content

Commit

Permalink
(feat): update gatsby-plugin-use-shopping-cart (#216)
Browse files Browse the repository at this point in the history
* Update gatsby plugin

* Update version

* Update deps to most recent USC version

* Update Readme
  • Loading branch information
ehowey authored Aug 29, 2021
1 parent 5e19ce4 commit eeae8a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions gatsby-plugin-use-shopping-cart/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Gatsby Plugin Use-Shopping-Cart

_This is a WIP and not stable yet, use at your own risk._
_This plugin is in early release, please test and provide any feedback._

This plugin simplifies the use of [use-shopping-cart](https://useshoppingcart.com/) with your existing Gatsby site by handling the integration of the `<CartProvider>` for you. Use-shopping-cart is an API layer to manage shopping cart logic and handle integration with Stripe payments for secure transactions.
This plugin simplifies the use of [Use-Shopping-Cart](https://useshoppingcart.com/) with your existing Gatsby site by handling the integration of the `<CartProvider>` for you. Use-Shopping-Cart is an API layer to manage shopping cart logic and handle integration with Stripe payments for secure transactions. Plugin options allow you to configure Use-Shopping-Cart according to their docs.

## Install

Expand Down Expand Up @@ -36,7 +36,9 @@ plugins: [
]
```

## Options
## Plugin Options

The following options are taken directly from the standard use-shopping-cart API. Default values are provided where possible using Gatsby's plugin configuration API.

mode - String
cartMode - String
Expand Down
1 change: 1 addition & 0 deletions gatsby-plugin-use-shopping-cart/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Current API
// mode,
// cartMode,
// stripePublicKey,
// successUrl,
// cancelUrl,
Expand Down
6 changes: 3 additions & 3 deletions gatsby-plugin-use-shopping-cart/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "gatsby-plugin-use-shopping-cart",
"version": "0.0.1",
"version": "0.0.2",
"description": "A plugin for use-shopping-cart to kickoff your ecommerce experience with Stripe.",
"author": "Eric Howey <[email protected]>",
"main": "index.js",
"dependencies": {
"use-shopping-cart": "^3.0.0-beta.17"
"use-shopping-cart": "^3.0.3"
},
"peerDependencies": {
"gatsby": "^3.6.0",
"gatsby": "^3.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand Down

0 comments on commit eeae8a9

Please sign in to comment.