Pay3 Javascript SDK

Initialize using npm

4min
install dependency install @pay3/sdk package using package manager which adds it to your packages json index js npm install save @pay3/sdk the above command will add pay3 js sdk to dependencies section of your package json index js "dependencies" { "@pay3/sdk" "^1 6 4", } initpay3() pay3 sdk supports fiat checkout flow using payment only mode pay3 team shares hostname and clientid during onboarding following parameters can be used for creating new instance of pay3 parameters hostname pay3 will be opened in a new window using this hostname prefix the host name is environment dependent clientid a unique client id is created for each client application the client id is environment dependent ispaymentmode pass true for fiat checkout in payments only mode lang (optional, default value ' en ') this parameter specifies the language preference for the pay3 sdk the strings used follow two letter language code as in iso 639 1 example pt for portuguese, en for english index js import { initpay3, pay3 } from '@pay3/sdk'; const pay3pay pay3 = initpay3({ clientid, hostname, ispaymentmode true, lang 'en' });