CSS & JS Includes¶
milliPay provides all its dependencies, except for JQuery and font-awesome, in the minified JavaScript file millipay.min.js (corresponding source maps are provided to ease debugging and if those don’t work in your environment, you can also use the non-minified millipay.js version). The modal dialog GUI also requires Bootstrap. Please include JQuery >= 2.2 before including millipay.min.js:
CSS Files¶
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.css">
JS Files¶
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.js"></script>
<script
src="https://my.v3.millipay.ch/js/millipay.min.js"></script>
Polyfills and libraries used by millipay.min.js / millipay.js:¶
| ES6PromisePolyfill-1.2.0: | |
|---|---|
| a polyfill for the JavaScript Promise construct | |
| jquery.ba-postmessage.js: | |
| a polyfill to support the browser window postMessage API | |
| javascript-state-machine-2.3.5: | |
| a simple state machine library | |
| EventEmitter-4.3.0: | |
| a library for Nodejs style event emitters | |
| jsrsasign-5.0.5: | |
| a library including JWT decoding support | |