Git Product home page Git Product logo

Comments (7)

zedd45 avatar zedd45 commented on July 25, 2024 1

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.

brxck avatar brxck commented on July 25, 2024 1

@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.

zedd45 avatar zedd45 commented on July 25, 2024

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,
      };
    });

SkuId   Quantity reversed?

from gatsby-starter-stripe.

brxck avatar brxck commented on July 25, 2024

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.

DOSputin avatar DOSputin commented on July 25, 2024

image

Seems like this is still an issue. This is on the currently deployed example demo.

from gatsby-starter-stripe.

brxck avatar brxck commented on July 25, 2024

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.

zedd45 avatar zedd45 commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.