Pay3 Javascript SDK
Initialize using script tag
3min
include script dependency when using script dependency you can include the javascript's url with in the head section of the application x y z is the version of the javascript file, for instance https //pay3 money/pay3 sdk pay/index global 1 2 3 js index js this script creates a singleton instance of the pay3 class and exports an object window\ pay3pay init() init saves the parameters which will be used during future function calls it also registers a listener to listen for messages from pay3 pay3 team shares hostname and clientid during onboarding 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 by the pay3 team to identify the client application the client id is environment dependent 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 window\ pay3pay init(hostname, clientid);