Giter VIP home page Giter VIP logo

Comments (3)

adreyfus-stripe avatar adreyfus-stripe commented on June 12, 2024

@ultraGentle At the moment we don't have the best guidance for testing client-only Checkout locally, and as you rightly called out that some of the ways describe online aren't very straightforward.

I've always had the easiest time using python's SimpleHTTPServer to quickly spin up a lightweight server for my static samples, as described here: https://gist.github.com/jgravois/5e73b56fa7756fd00b89#simplehttpserver-a-pythonic-approach, e.g.

cd client-only/client
python -m http.server 5000

And then I test over http to make sure everything works before deploying.

from checkout-single-subscription.

adreyfus-stripe avatar adreyfus-stripe commented on June 12, 2024

@ultraGentle Delayed response but we added a way to use the Stripe CLI to easily serve static files when testing client-only Checkout integrations. This might not help you at the moment but if you run

stripe serve

from the root of your project it will spin up a simple server to serve your static assets. More on that feature here, thanks for indirectly suggesting! https://github.com/stripe/stripe-cli/releases/tag/v1.3.0

from checkout-single-subscription.

ultraGentle avatar ultraGentle commented on June 12, 2024

@adreyfus-stripe Thanks for following up, and being receptive!

from checkout-single-subscription.

Related Issues (20)

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.