Ingenico Connect JavaScript SDK
Introduction
The JavaScript SDK helps you to communicate with the Ingenico Connect Client API. It's primary features are:
- handling of all the details concerning the encryption of the payment details,
- convenient JavaScript wrapper around the API calls and responses,
- localization of various labels and messages,
- user-friendly formatting (masking) of payment data such as card numbers and expiry dates,
- validation of input, and
- a check to determine to which payment provider a card number is associated.
See the Ingenico ePayments Developer Hub for more information on how to use the SDK.
Examples
⚠ Please note that all examples have been moved to their own repository.
Structure of this repository
This repository consists out of three main components:
- The source code of the SDK itself:
/src/
- A distributable folder containing the result of the builds of the previous two components:
/dist/
/dist/connectsdk.js
- The concatenated but not minified full SDK source/dist/connectsdk.min.js
- The minified version ofconnectsdk.js
/dist/connectsdk.noEncrypt.js
- The concatenated but not minified SDK source without the encryption components/dist/connectsdk.noEncrypt.min.js
- The minified version ofconnectsdk.noEncrypt.js
Building the repository
This repository uses gulp to build. Assuming you have npm and gulp installed, building is straightforward:
- If it exists remove the
dist
folder. - From the root of the project install all dependencies:
npm install
. - From the same location run gulp:
gulp build
. - The result of the build will have been written to the
dist
folder.