1.0.0-RC-19 • Published 4 years ago
paymentiq-1click-client v1.0.0-RC-19
PaymentIQ-1click-client
Setup
npm install
npm start // serves built file at http://localhost:9092/dist/paymentiq-1click-client.js
Configure
Include paymentiq-1click-client script or npm package
<script type="text/javascript" src="http://static.paymentiq.io/paymentiq-1click-client/paymentiq-1click-client.js"></script>
or
npm i paymentiq-1click-client --save
<div id='piq-1-click'></div>
<script>
new _PaymentIQ1Click('#piq-1-click', {
environment: 'test',
clientId: 'CLIENT_ID',
provider: 'gii-bankid-se',
redirect_uri: 'https://www.getpostman.com/oauth2/callback', // just some endpoint that returns 200 + is registered in
country: 'SE',
ssn: 'YYMMDDXXXX',
authCookieName: 'JSESSIONID',
display: 'inline-popup'
},
(oneClick) => {
oneClick.on({
onComplete: (url, params) => {
console.log('Authorized and ready to show as signed in')
}
})
}
)
</script>
Parameters
key | type | required | values | description |
---|---|---|---|---|
clientId | string | true | CLIENT_ID | Your unique clientID generated in PIQ |
environment | string | false | production test development | What environment of PIQ to target |
redirect_url | string | false | Endpoint that returns 200 . | Endpoint that will be called when a login is done. |
provider | string | false | See Devcode identity providers | Pre select what login provider to use |
country | string | true | SE , NO , GB | What country do you want to target |
authCookieName | string | true | JSESSIONID | Name of the authCookie |
ssn | string | false | NationalId | NationalId, will prefill and auto submit a login if provided |
display | string | false | page popup inline-popup | How should the login component be displayed. Defaults to page |
Build
npm run build // comiles project into a single dist file at dist/paymentiq-1click-client.js
Deploy
Jenkins is configured in 4 steps
1) Build 2) Deploy experimental version 3) Deploy new version 3) Deploy new version to npm
Changelog
Changes made for every version can be found here
1.0.0-RC-19
4 years ago
1.0.0-RC-18
4 years ago
1.0.0-RC-17
4 years ago
1.0.0-RC-16
4 years ago
1.0.0-RC-15
4 years ago
1.0.0-RC-14
4 years ago
1.0.0-RC-13
4 years ago
1.0.0-RC-12
4 years ago
1.0.0-RC-11
4 years ago
1.0.0-RC-10
4 years ago
1.0.0-RC-8
4 years ago
1.0.0-RC-7
4 years ago
1.0.0-RC-6
4 years ago
1.0.0-RC-5
4 years ago
1.0.0
4 years ago