A example of using the Square Payment Form with Vue.js. Please read the full description in this blog post.
To try it out, first clone the repo and then run npm run dev
to start up the development server.
This example was made with the vue-cli
, so most of the boilerplate is from the default 'webpack' project.
Other things you might be interested in:
- Square's developer documentation: https://docs.connect.squareup.com/
- The guide for the vue-cli webpack project and docs for vue-loader.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report