Flexfields is a product that enables a merchant to have a payment related fields inside its page, while each field is in an iframe lolcated on Splitit's domain, and therefoere enables PCI compliance.
You may run it locally by first building the project, by running ``npm run build:local-dev-env`, and then, open the emample page, on any live server.
To build the project, run npm run build
. This will create a dist
folder, with the following folders:
dist/{environment}
- contains the files that should be uploaded to the server, and are used by the merchant.
Environments are local
, beta
, sandbox
, automation
and prod
.
__URL__
- the source URL of the iframes.__ENV__
- the environment of the iframes. Can be local
, beta
, sandbox
, automation
and prod
.__DATA_TRACKING_ENDPOINT__
- the endpoint to send the data to.__GA_UA_ID__
- the Google Analytics UA ID.__VERSINO__
- the version of the project.__MAJOR_VERSION__
- the major version of the project.__TRANSLATION_URL__
- the URL of the translation API.__API_URL__
- the URL of the API.run npm test
Generated using TypeDoc