UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

21 lines (14 loc) 1.02 kB
For browser environments, you can import the Client SDK directly from our CDN to your project's HTML. To accomplish this, include the Client SDK in your page using one and only of the two script tags below. After this step you will be able to access the Client SDK features via the global variable `paydock`. For production we recommend using the compressed version (`.min.js`) since it will result in faster loading times for your end users. - *Compressed version for production: `https://widget.paydock.com/sdk/latest/widget.umd.min.js`* - *Full version for development and debug: `https://widget.paydock.com/sdk/latest/widget.umd.js`* You may download the production version of the Client SDK scripts [here][min], and, the development version [here][max]. [min]: https://widget.paydock.com/sdk/latest/widget.umd.min.js [max]: https://widget.paydock.com/sdk/latest/widget.umd.js For more advanced use-cases, the library has [UMD](https://github.com/umdjs/umd) format that can be used in RequireJS, Webpack, etc.