1.0.0-RC-19 • Published 4 years ago

paymentiq-1click-client v1.0.0-RC-19

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

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

keytyperequiredvaluesdescription
clientIdstringtrueCLIENT_IDYour unique clientID generated in PIQ
environmentstringfalseproduction test developmentWhat environment of PIQ to target
redirect_urlstringfalseEndpoint that returns 200 .Endpoint that will be called when a login is done.
providerstringfalseSee Devcode identity providersPre select what login provider to use
countrystringtrueSE, NO, GBWhat country do you want to target
authCookieNamestringtrueJSESSIONIDName of the authCookie
ssnstringfalseNationalIdNationalId, will prefill and auto submit a login if provided
displaystringfalsepage popup inline-popupHow 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