Common
required
elType:
string
Example:
#switchere
Details:
Query selector for mount widget. Required element with this selector in the html document.
Not required ifmode
==modal
.
required
partnerKeyType:
string
Example:
XXXXXXXXXXX
Details:
Unique partner API key, you should create it in the partner settings.
required
httpReturnSuccessType:
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
required
httpReturnFailedType:
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
Type:
boolean
Default:
false
Details:
ShowClose
button when order is finished.closeButtonCallback
is required.
Also see: Introduction -> Show close button.
closeButtonCallback
Type:
(data: 'success' | 'failed') => void
Default:
null
Details:
Javascript callback. Calling whenClose
button is clicked.closeButton
is required. Argument can be 'success' or 'failed'.
Also see: Introduction -> Show close button.