API Reference
createLightbox()
Initializes the lightbox with a specified URL and options, returns an instance of the lightbox.
Type
tsfunction createLightbox(url: string, options?: InitOptions): LightboxInstance
Details
The first argument is the target Url. The second optional argument is the options to be passed to the lightbox instance.
Example
jsimport { createLightbox } from '@placetopay/lightbox-sdk'; const lightbox = createLightbox('https://checkout.placetopay.com/')