Comments (7)
I submitted a PR to stringify the body for the response. I was receiving an error from the netlify lib's serve.js
.
from gatsby-starter-stripe.
@zedd45 Yesterday's commit upgraded gatsby-source-stripe to 3.0.2, and many others were also upgraded due to security vulnerabilities.
As for the problem I described above, I've filed an issue at gatsby-source-stripe.
from gatsby-starter-stripe.
It looks like the array destructuring order for quantity and skuId might be reversed / and or embedded in another array (see screenshot). I tried modifying that, but the Stripe API rejects the request saying it's an invalid string.
const items = Object.entries(cart).map(([, cartContents]) => {
const [skuId, quantity] = cartContents;
return {
type: 'sku',
parent: skuId,
quantity,
};
});
from gatsby-starter-stripe.
Thanks for reporting this and thank you for the detailed issue! This was, in part, due to the things you pointed out. The latest commit should fix this.
from gatsby-starter-stripe.
Seems like this is still an issue. This is on the currently deployed example demo.
from gatsby-starter-stripe.
Hey, thanks for checking out the starter! I believe this was actually fixed above; however, the deployed demo is an old build which still has this bug. I've not been able to redeploy a new demo as for some reason (???) gatsby-source-stripe is now failing to pull some images on rebuild, though nothing there has changed and I have not been able to determine why. The code in the repo does not have this issue.
from gatsby-starter-stripe.
We didn't change any of the dependencies lately, correct? I think I upgraded one of my local dependencies, but I thought I rolled it back.
It looks like the version of gatsby-source-stripe
was updated with bc17bfb, but I wonder if that is related? Locally I tried upgrading to 3.x.x
, but it looks like I downgraded it back to 2.x.x
locally for some reason.
"gatsby-source-stripe": "2.x.x",
from gatsby-starter-stripe.
Related Issues (19)
- Failed at the [email protected] develop script HOT 6
- Documentation on bare minimum set up in Stripe for use of this starter HOT 2
- UNHANDLED REJECTION Maximum call stack size exceeded HOT 1
- Issue on start HOT 2
- Unknown field 'description' on type 'StripeSkuProduct'. HOT 3
- Are there any plans to update for new SCA Stripe Checkout? HOT 1
- The orders API and consequently the SKU endpoint has been deprecated HOT 1
- Cannot query field "allStripeSku" on type "Query". ββ GraphQL can't find allStripeSku HOT 9
- Orders API is deprecated
- Add a Stripe CLI fixture to help people get started HOT 1
- Example for a Subscription Item HOT 2
- Include directions to remove images from repo history
- Installation problem HOT 4
- Error in function useStaticQuery in ./.cache/gatsby-browser-entry.js HOT 8
- Issue Deploying to Netlify HOT 1
- Issue with Stripe Redirect to Checkout HOT 1
- Is it possible not to use commercial APIsοΌ
- Upgrade gatsby-source-stripe to v3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-starter-stripe.