A boilerplate to develop and test a Payment Method to VTEX Smart Checkout, based on Pink.
We recommend you read the Guide to Design a Payment Method to VTEX Smart Checkout.
You can see an example of a Payment Method layout working in http://vtex.github.io/checkout-payment-ui/.
The main features:
- Local server
- Less autocompile
- Livereload for any files changes
- Base of VTEX Smart Checkout HTML and CSS
- Internationalization for 4 idioms: FR, EN, PT-BR and ES
When you run grunt
, it starts a server at http://localhost:8080/, compiles style.less
file and begin watching changes in all files inside assets
folder. Any change will reload the page or just reload css files, in case of style changes.
You can test your layout creating/modifying:
src/partials/payment.html
: HTML filesrc/assets/css/less/style.less
: style filesrc/assets/img/
: images foldersrc/i18n
: internalization folder
- Download or clone this repo
- Install NPM dependencies: run
npm i
- Run
grunt
- Go to http://localhost:8080/