Common

el required

  • Type: string

  • Example: #switchere

  • Details:
    Query selector for mount widget. Required element with this selector in the html document.
    Not required if mode == modal.

partnerKey required

  • Type: string

  • Example: XXXXXXXXXXX

  • Details:
    Unique partner API key, you should create it in the partner settings.

httpReturnSuccess required

  • Type: string

  • Example: https://domain.tld/success

  • Details:
    While order can be finished, this url will be used to redirect back to your site.

    TIP

    Not required if provide closeButton

httpReturnFailed required

  • Type: string

  • Example: https://domain.tld/failed

  • Details:
    If order was canceled or moved to error state, this url will be used to redirect back to your site.

    TIP

    Not required if provide closeButton

closeButton

closeButtonCallback

  • Type: (data: 'success' | 'failed') => void

  • Default: null

  • Details:
    Javascript callback. Calling when Close button is clicked. closeButton is required. Argument can be 'success' or 'failed'.
    Also see: Introduction -> Show close button.

Last Updated: