Skip to content
On this page

Playground

Url

It is the target url that will be displayed in the lightbox.


Allow Redirects

Type: boolean

Default: true

Determines whether to allow redirects from the lightbox to another URL for users who are on an iOS device or a Safari browser.


Close Button

Type: boolean

Default: true

Determines if the button to close the lightbox is displayed.

Code

js
import { createLightbox } from '@placetopay/lightbox-sdk';

createLightbox('', { 
    allowRedirects: true, 
    closeButton: true
}).open();