0.1.29 • Published 1 year ago

payment-engine v0.1.29

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Payment Engine

Dependencies

  • jquery: 1.12.4 (is needed you import the jquery before importing this library)
  • jsDelivr (Create a CDN based on the npm package)

Running on local

  1. Build the library
npm run build # Compile files in development
npm run build:prod # Compile files optimized for production
  1. Running a local server
npm run serve # Start a new server on: http://localhost:3000
  1. Running watch with the local server at the same time
npm run dev # This command will execute `npm run watch` to see all modification files and start a new server.
  1. Acessing the files After that you started a local server, you can access the files on http://localhost:3000.

For example: http://localhost:3000/index.js, http://localhost:3000/api.js, and so on.

Publish this lib

First, you need to sign in on npm: npm login. When you create a new version, it is needly to update the version on package.json and execute this command: npm run publish. This command is responsible for building the application and publishing the files to npm.

The build will create all minified files on dist at the same level.

Obs.: You cannot override the version, so each version is unique.

Using this lib

The version on URL is the version set on package.json and published on npm.

You need to import the file index.js. This file is responsible for creating the start function on the application.

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/payment-engine@version/dist/index.js"></script>

On the operation site, you need to create a file to set the configurations. In this file, you can override all default variables.

//engine-override.js
PaymentEngine.init({
  debugMode: 1,
  // others configs
})

A comparing about the files:

Last fileThis libComments
1.stickyConfig.jshttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/index.jsYou need to create the engine-override.js
1.stickyBaseConfig.jshttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/index.jsYou need to create the engine-override.js
2.stickyAPIFramework.jshttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/api.jsYou need to import this only if the front is using some function there
3.stickyUtils.jshttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/actions.js
4.stickyZIPAutofill.jshttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/zip-autofill.js
5.stickyValidations.jshttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/validation.js
op-configure.phpIt's not needed anymore.
tracking.phpIt's manual copy.
Code php to set cookieshttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/cookies.jsWhere was using php to set cookies, you can import this file.
ipify.orgYou don't need to import anymore, because the IP is got when init the payment engine.
firePostBackhttps://cdn.jsdelivr.net/npm/payment-engine@version/dist/redtrack.jsYou can use the function after importing this file.
0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.48

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.15

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago