UNPKG

1.92 kBMarkdownView Raw
1# Ingenico Connect JavaScript SDK
2
3## Introduction
4
5The JavaScript SDK helps you to communicate with the [Ingenico Connect](https://epayments.developer-ingenico.com/) Client API. It's primary features are:
6
7* handling of all the details concerning the encryption of the payment details,
8* convenient JavaScript wrapper around the API calls and responses,
9* localization of various labels and messages,
10* user-friendly formatting (masking) of payment data such as card numbers and expiry dates,
11* validation of input, and
12* a check to determine to which payment provider a card number is associated.
13
14See the [Ingenico ePayments Developer Hub](https://epayments.developer-ingenico.com/documentation/sdk/mobile/javascript/) for more information on how to use the SDK.
15
16## Examples
17
18⚠ Please note that all examples have been moved to their own [repository](https://github.com/Ingenico-ePayments/connect-sdk-client-js-example).
19
20## Structure of this repository
21
22This repository consists out of three main components:
23
241. The source code of the SDK itself: `/src/`
252. A distributable folder containing the result of the builds of the previous two components: `/dist/`
26 - `/dist/connectsdk.js` - The concatenated but not minified full SDK source
27 - `/dist/connectsdk.min.js` - The minified version of `connectsdk.js`
28 - `/dist/connectsdk.noEncrypt.js` - The concatenated but not minified SDK source without the encryption components
29 - `/dist/connectsdk.noEncrypt.min.js` - The minified version of `connectsdk.noEncrypt.js`
30
31## Building the repository
32
33This repository uses [gulp](http://gulpjs.com/) to build. Assuming you have npm and gulp installed, building is straightforward:
34
351. If it exists remove the `dist` folder.
362. From the root of the project install all dependencies: `npm install`.
373. From the same location run gulp: `gulp build`.
384. The result of the build will have been written to the `dist` folder.