Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 1.22 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.22 KB

Payment Boilerplate

This tool allows generating projects for your Alokai x eCommerce x Payment Service Provider integration fastly. The output is a perfect starting point for maintaining a Payment Service Provider integration.

How to install

  1. Clone the repository.
  2. Install dependencies via yarn.

How to generate project

Use yarn generate command with required flags as presented below:

yarn generate \
--ecommerce:tag ct \
--ecommerce:capitalizedTag Commercetools \
--ecommerce:name commercetools \
--author:name Fifciu \
--payment:tag pp \
--payment:name PayPal \
--payment:capitalizedTag Paypal \
--payment:logoSrc https://uploads-ssl.webflow.com/5e7cf661c23ac9df156d9c3d/5eb01763b8d39cb1427e86f2_PayPal%201.svg

Optional flags: --misc:enterprise - set as true if you are developing a package as an Alokai Core team and it will be enterprise one.

Project will be generated in the <PAYMENT_TAG>-<ECOMMERCE_TAG>-integration directory.

After generating, check your package name - by default it equals @vsf-enterprise/<PAYMENT_TAG>-<ECOMMERCE_TAG>. In terms of dependencies, the tool assumes eCommerce integration you are using is also inside @vsf-enterprise scope. Update names of packages if you need to.